Message Boards Message Boards

0
|
4507 Views
|
2 Replies
|
2 Total Likes
View groups...
Share
Share this post:

[?] Use a translated Point to define a Cylinder?

Posted 5 years ago

Using a translated point in the definition of a Cylinder does not work.

point= Translate[Point[{0, 0, 0}], {100, 0, 0}];
cylinder= Cylinder[{{0, 0, 0}, point}, 5];
Graphics3D[
 {point, cylinder}
 ]

point plots but cylinder gives an error.

POSTED BY: Jeff Burns
2 Replies
Posted 5 years ago

This change solves the problem:

stick = Cylinder[{{0, 0, 0}, First@stickTop}, 5]
POSTED BY: Jeff Burns

I doubt that Cylinder accepts Point primitives as specifications. You must extract the coordinate triple and feed those to Cylinder:

point = Translate[Point[{0, 0, 0}], {100, 0, 0}];
cylinder = Cylinder[{{0, 0, 0}, point // Normal // First}, 5];
Graphics3D[{point, cylinder}]
POSTED BY: Gianluca Gorni
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract