plot3d.h File Reference IntroductionModule to generate 3d plots. Right now the output is in geomview format. Definition in file plot3d.h.
Macro Definition Documentation◆ DEFAULT_DICE
◆ DCP3D_R
◆ DCP3D_G
◆ DCP3D_B
◆ MAX_VERTEX_FACE_PICK
Function Documentation◆ InitPlot3d()Initializes a 3d plot.
Definition at line 402 of file plot3d.c. References Tplot3d::blockLevel, Tplot3d::color, DCP3D_G, DCP3D_R, DEFAULT_DICE, Error(), Tplot3d::f, FALSE, Tplot3d::fileName, Tplot3d::inObject, Tplot3d::lout, TpickInfo::lpick, Tplot3d::lpid, NEW, NewColor(), NO_UINT, Tplot3d::nobj, TpickInfo::oID, pick(), Tplot3d::pickInfo, and Tplot3d::thread. Referenced by AnimateWorld(), main(), PlotAtlas(), PlotAtlasRRT(), PlotConnection(), PlotQrand(), PlotRRT(), and TriangulateAtlas(). ◆ LookPlot3d()
Positions the camera so that the full scene is seen.
Definition at line 526 of file plot3d.c. References Error(), Tplot3d::f, Tplot3d::inObject, LOCK_OUT_LEVEL, and UNLOCK_OUT_LEVEL. Referenced by AnimateWorld(), and main(). ◆ StartNew3dObject()Start the definition of a geometric object composed by one or more basic geometric elements.
Definition at line 575 of file plot3d.c. References Close3dObject(), Tplot3d::color, CopyColor(), Tplot3d::f, Tplot3d::fileName, Tplot3d::inObject, LOCK_OUT_LEVEL, Tplot3d::nobj, and TRUE. Referenced by main(), PlotAtlas(), PlotAtlasRRT(), PlotBifurcations(), PlotConnection(), PlotEnvironment(), PlotForceField(), PlotLink(), PlotPolyhedron(), PlotQrand(), PlotRRT(), PlotSamples(), and TriangulateAtlas(). ◆ Close3dObjectNoColor()
Ends the definition of a geometric object composed by many basic geometric elements. In this case the object is not colored but we assume that each individual element has it own color.
Definition at line 607 of file plot3d.c. References Tplot3d::f, FALSE, Tplot3d::fileName, Tplot3d::inObject, Tplot3d::nobj, and UNLOCK_OUT_LEVEL. Referenced by PlotAtlas(), and PlotPolyhedron(). ◆ Close3dObject()
Ends the definition of a geometric object composed by many basic geometric elements.
Definition at line 592 of file plot3d.c. References Tplot3d::color, Tplot3d::f, FALSE, Tplot3d::fileName, Tplot3d::inObject, Tplot3d::nobj, SetColor3dObject(), and UNLOCK_OUT_LEVEL. Referenced by ClosePlot3d(), main(), PlotAtlas(), PlotAtlasRRT(), PlotBifurcations(), PlotConnection(), PlotEnvironment(), PlotForceField(), PlotLink(), PlotPolyhedron(), PlotQrand(), PlotRRT(), PlotSamples(), StartNew3dObject(), and TriangulateAtlas(). ◆ Delete3dObject()
Deletes a previously created geometric object. This is used when creating animations.
Definition at line 566 of file plot3d.c. References Tplot3d::f, Tplot3d::fileName, LOCK_OUT_LEVEL, and UNLOCK_OUT_LEVEL. Referenced by PlotAtlas(). ◆ Start3dBlock()
Starts a block of commands that have to be executed simultaneously. Commands are, for instance, the generation of new geometry of the transformation/deletion of existing objects.
Definition at line 539 of file plot3d.c. References Tplot3d::blockLevel, Error(), Tplot3d::f, Tplot3d::inObject, and LOCK_OUT_LEVEL. Referenced by AnimateWorld(), main(), MoveMechanismFromTransforms(), PlotMechanism(), and PlotWorld(). ◆ Close3dBlock()
Ends a block of commands that have to be executed simultaneously.
Definition at line 550 of file plot3d.c. References Tplot3d::blockLevel, Error(), Tplot3d::f, Tplot3d::inObject, and UNLOCK_OUT_LEVEL. Referenced by AnimateWorld(), ClosePlot3d(), main(), MoveMechanismFromTransforms(), PlotMechanism(), and PlotWorld(). ◆ SetColor3dObject()Changes the color of an object.
Definition at line 621 of file plot3d.c. References Tplot3d::f, Tplot3d::fileName, Tplot3d::inObject, LOCK_OUT_LEVEL, NullColor(), PrintColor(), and UNLOCK_OUT_LEVEL. Referenced by Close3dObject(). ◆ Delay3dObject()
Introduces a delay in the generation of the geometry. Used for animations.
Definition at line 640 of file plot3d.c. References Tplot3d::f, LOCK_OUT_LEVEL, and UNLOCK_OUT_LEVEL. Referenced by AnimateWorld(). ◆ Move3dObject()
Moves a 3d object.
Definition at line 652 of file plot3d.c. References Error(), Tplot3d::f, Tplot3d::fileName, HTransformPrintT(), Tplot3d::inObject, LOCK_OUT_LEVEL, and UNLOCK_OUT_LEVEL. Referenced by MoveLinkFromTransform(), and MovePolyhedron(). ◆ PlotBox3d()
Adds an axis aligned box to the current object. This command can only be used in between a call to StartNew3dObject and the corresponding call to Close3dObject.
Definition at line 666 of file plot3d.c. References Error(), Tplot3d::f, and Tplot3d::inObject. Referenced by main(), and PlotChartAsBox(). ◆ PlotTriangle3d()
Adds triangle to the current object. This command can only be used in between a call to StartNew3dObject and the corresponding call to Close3dObject.
Definition at line 700 of file plot3d.c. References Error(), Tplot3d::f, and Tplot3d::inObject. ◆ Plot3dObject()
Adds polytope to the current object. This command can only be used in between a call to StartNew3dObject and the corresponding call to Close3dObject. What we denote as polytope are geomview OFFs.
Definition at line 722 of file plot3d.c. References Error(), Tplot3d::f, and Tplot3d::inObject. Referenced by PlotChartAsPolygon(), PlotPolyhedron(), and TriangulateAtlas(). ◆ Plot3dObjectWithColor()
Adds colored polytope to the current object. This command can only be used in between a call to StartNew3dObject and the corresponding call to Close3dObject. What we denote as polytope are geomview OFFs.
Definition at line 752 of file plot3d.c. References Error(), Tplot3d::f, Tplot3d::inObject, and PrintColor(). Referenced by PlotChartAsPolygon(). ◆ Plot3dObjectWithColors()
Adds colored polytope to the current object. The difference with respect to Plot3dObjectWithColor is that here we have a color for each vertex of the polytope. Thus, the renderer takes care of interpolating the color inside each face. This typically produces smoother figures. This command can only be used in between a call to StartNew3dObject and the corresponding call to Close3dObject. Note that if this function is used, the global color of the 3d object is set to null (see NullColor) so that the colors defined inside this object are not overriden by the global color. What we denote as polytope are geomview COFFs.
Definition at line 784 of file plot3d.c. References Tplot3d::color, Error(), Tplot3d::f, Tplot3d::inObject, NewColor(), and PrintColor(). Referenced by PlotPolyhedron(), and TriangulateAtlas(). ◆ PlotSphere()
Adds sphere to the current object. This command can only be used in between a call to StartNew3dObject and the corresponding call to Close3dObject.
Definition at line 821 of file plot3d.c. References Error(), Tplot3d::f, and Tplot3d::inObject. Referenced by PlotPolyhedron(), PlotRRT(), and PlotSamples(). ◆ PlotCylinder()
Adds cylinder to the current object. This command can only be used in between a call to StartNew3dObject and the corresponding call to Close3dObject.
Definition at line 831 of file plot3d.c. References Error(), Tplot3d::f, HTransformDelete(), HTransformPrintT(), HTransformX2Vect(), and Tplot3d::inObject. ◆ PlotLine()
Adds line to the current object. This command can only be used in between a call to StartNew3dObject and the corresponding call to Close3dObject.
Definition at line 851 of file plot3d.c. References Tplot3d::color, Error(), Tplot3d::f, Tplot3d::inObject, and PrintColor(). ◆ PlotSegments()
Adds a collection of segments to the current object. This command can only be used in between a call to StartNew3dObject and the corresponding call to Close3dObject.
Definition at line 870 of file plot3d.c. References Tplot3d::color, Error(), Tplot3d::f, Tplot3d::inObject, and PrintColor(). Referenced by PlotPolyhedron(). ◆ PlotVect3d()
Adds polyline (i.e., a collection of concatenated lines) to the current object. This command can only be used in between a call to StartNew3dObject and the corresponding call to Close3dObject.
Definition at line 907 of file plot3d.c. References Tplot3d::color, Error(), Tplot3d::f, Tplot3d::inObject, and PrintColor(). Referenced by main(), PlotAtlas(), PlotAtlasRRT(), PlotBifurcations(), PlotChart(), PlotConnection(), PlotLink(), PlotQrand(), PlotRRT(), and PlotSamples(). ◆ Take3dSnapshot()
Takes a screenshot of the geometry. Used to create videos from animations. The screenshot format are .ppm files that can be browsed/manipulated easily.
Definition at line 929 of file plot3d.c. References Tplot3d::f, LOCK_OUT_LEVEL, and UNLOCK_OUT_LEVEL. Referenced by main(). ◆ ClosePlot3d()Closes a 3d plot. Before closing the file, all geometric objects are offset by (average_x,average_y,average_z). This is used to center the scene in the (0,0,0) and facilitates the on-line manipulation (rotations, translations,...) using geomview.
Definition at line 939 of file plot3d.c. References Tplot3d::blockLevel, Close3dBlock(), Close3dObject(), Error(), Tplot3d::f, Tplot3d::fileName, LOCK_OUT, Tplot3d::lout, TpickInfo::lpick, Tplot3d::pickInfo, Tplot3d::thread, and UNLOCK_OUT. Referenced by AnimateWorld(), main(), PlotAtlas(), PlotAtlasRRT(), PlotConnection(), PlotQrand(), PlotRRT(), and TriangulateAtlas(). |
Follow us!