Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

Asymptote/Command/solids/cylinder

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

This example will draw a cylinder along the x-axis. import solids; // Set page size size(0,150); // Lighting currentlight=Viewport; // Draw axis draw(Label("$y$",1),(0,0,0)--(0,1,0),red,Arrow3); draw(Label("$x$",1),(0,0,0)--(1,0,0),red,Arrow3); draw(Label("$z$",1),(0,0,0)--(0,0,1),red,Arrow3); // Draw cylinder // cylinder(startpoint3d, radius, length, along_this_axis) triple start = (1,1,1); real length = 1; real radius = 0.5; triple ax = (1,0,0); revolution r = cylinder(start,radius,length,ax); draw(r,black);