plot3d.c File Reference Detailed DescriptionImplementation of the functions to generate 3d plots. Definition in file plot3d.c.
Function DocumentationInitializes a 3d plot.
Definition at line 41 of file plot3d.c. References Tplot3d::color, DCP3D_G, DCP3D_R, Error(), Tplot3d::f, FALSE, Tplot3d::fileName, Tplot3d::inObject, NEW, NewColor(), and Tplot3d::nobj. Referenced by AnimateWorld(), main(), PlotAtlas(), PlotAtlasRRT(), PlotConnection(), PlotQrand(), PlotRRT(), and TriangulateAtlas().
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 141 of file plot3d.c. References Tplot3d::f. Referenced by AnimateWorld(), main(), MoveMechanismFromTransforms(), PlotMechanism(), and PlotWorld().
Ends a block of commands that have to be executed simultaneously.
Definition at line 146 of file plot3d.c. References Tplot3d::f. Referenced by AnimateWorld(), main(), MoveMechanismFromTransforms(), PlotMechanism(), and PlotWorld().
Deletes a previously created geometric object. This is used when creating animations.
Definition at line 152 of file plot3d.c. References Tplot3d::f, and Tplot3d::fileName. Referenced by PlotAtlas(). Start the definition of a geometric object composed by one or more basic geometric elements.
Definition at line 157 of file plot3d.c. References Close3dObject(), Tplot3d::color, CopyColor(), Tplot3d::f, Tplot3d::fileName, Tplot3d::inObject, Tplot3d::nobj, and TRUE. Referenced by main(), PlotAtlas(), PlotAtlasRRT(), PlotBifurcations(), PlotConnection(), PlotEnvironment(), PlotForceField(), PlotLink(), PlotPolyhedron(), PlotQrand(), PlotRRT(), PlotSamples(), and TriangulateAtlas().
Ends the definition of a geometric object composed by many basic geometric elements.
Definition at line 171 of file plot3d.c. References Tplot3d::color, Tplot3d::f, FALSE, Tplot3d::fileName, Tplot3d::inObject, Tplot3d::nobj, and SetColor3dObject(). Referenced by ClosePlot3d(), main(), PlotAtlas(), PlotAtlasRRT(), PlotBifurcations(), PlotConnection(), PlotEnvironment(), PlotForceField(), PlotLink(), PlotPolyhedron(), PlotQrand(), PlotRRT(), PlotSamples(), StartNew3dObject(), and TriangulateAtlas().
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 184 of file plot3d.c. References Tplot3d::f, FALSE, Tplot3d::fileName, Tplot3d::inObject, and Tplot3d::nobj. Referenced by PlotAtlas(). Changes the color of an object.
Definition at line 196 of file plot3d.c. References Tplot3d::f, Tplot3d::fileName, Tplot3d::inObject, NullColor(), and PrintColor(). Referenced by Close3dObject().
Introduces a delay in the generation of the geometry. Used for animations.
Definition at line 211 of file plot3d.c. References Tplot3d::f. Referenced by AnimateWorld().
Moves a 3d object.
Definition at line 217 of file plot3d.c. References Tplot3d::f, Tplot3d::fileName, and HTransformPrintT(). Referenced by MoveLinkFromTransform(), and MovePolyhedron().
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 224 of file plot3d.c. References Error(), Tplot3d::f, and Tplot3d::inObject. Referenced by main(), and PlotChartAsBox().
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 256 of file plot3d.c. References Error(), Tplot3d::f, and Tplot3d::inObject.
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 276 of file plot3d.c. References Error(), Tplot3d::f, and Tplot3d::inObject. Referenced by PlotChartAsPolygon(), PlotPolyhedron(), and TriangulateAtlas().
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 304 of file plot3d.c. References Error(), Tplot3d::f, Tplot3d::inObject, and PrintColor(). Referenced by PlotChartAsPolygon().
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 334 of file plot3d.c. References Tplot3d::color, Error(), Tplot3d::f, Tplot3d::inObject, NewColor(), and PrintColor(). Referenced by TriangulateAtlas().
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 369 of file plot3d.c. References Error(), Tplot3d::f, and Tplot3d::inObject. Referenced by PlotPolyhedron().
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 377 of file plot3d.c. References Error(), Tplot3d::f, HTransformDelete(), HTransformPrintT(), HTransformX2Vect(), and Tplot3d::inObject.
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 395 of file plot3d.c. References Tplot3d::color, Error(), Tplot3d::f, Tplot3d::inObject, and PrintColor().
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 412 of file plot3d.c. References Tplot3d::color, Error(), Tplot3d::f, Tplot3d::inObject, and PrintColor(). Referenced by PlotPolyhedron().
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 447 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().
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 467 of file plot3d.c. References Tplot3d::f. Referenced by main().
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 473 of file plot3d.c. References Close3dObject(), Tplot3d::f, Tplot3d::fileName, and Tplot3d::nobj. Referenced by AnimateWorld(), main(), PlotAtlas(), PlotAtlasRRT(), PlotConnection(), PlotQrand(), PlotRRT(), and TriangulateAtlas(). |
Follow us!