plot3d.c
Go to the documentation of this file.
37 #define CYLINDER_STRING "{INST geom { CBEZ223 2 1 0 1 1 0 0 1 0 2 1 1 1 1 1 0 1 1 2 0 1 1 0 1 0 0 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 } transforms{ = TLIST 0.5 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0.5 0 0 0 0 0 1 0 0 -1 0 0 0 0 0 1 0.5 0 0 0 0 -1 0 0 0 0 -1 0 0 0 0 1 0.5 0 0 0 0 0 -1 0 0 1 0 0 0 0 0 1}}"
164 p->nobj++; /* We increas the object identifier (empty objects also use an identifier although they are never created) */
484 fprintf(p->f,"(xform-set sol_%s_%u {1 0 0 0 0 1 0 0 0 0 1 0 %f %f %f 1})\n",p->fileName,i,average_x,average_y,average_z);
void PlotTriangle3d(double x1, double y1, double z1, double x2, double y2, double z2, double x3, double y3, double z3, Tplot3d *p) Adds a triangle to the current object. Definition: plot3d.c:256 void InitPlot3d(char *name, boolean axes, int argc, char **arg, Tplot3d *p) Constructor. Definition: plot3d.c:41 void PlotSphere(double r, double x, double y, double z, Tplot3d *p) Adds a sphere to the current object. Definition: plot3d.c:369 void Plot3dObject(unsigned int nv, unsigned int nf, unsigned int ne, double **v, unsigned int *nvf, unsigned int **fv, Tplot3d *p) Adds a polytope to the current object. Definition: plot3d.c:276 void Delete3dObject(unsigned int nobj, Tplot3d *p) Deletes a previously created geometric object. Definition: plot3d.c:152 unsigned int StartNew3dObject(Tcolor *c, Tplot3d *p) Start a composed object. Definition: plot3d.c:157 A homgeneous transform in R^3. void Take3dSnapshot(char *name, Tplot3d *p) Takes a screenshot of the geometry. Definition: plot3d.c:467 Definition of the Tplot3d type and the associated functions. void Close3dObjectNoColor(Tplot3d *p) Closes a composed object without assigning any color. Definition: plot3d.c:184 void PlotCylinder(double r, double *p1, double *p2, Tplot3d *p) Adds a cylinder to the current object. Definition: plot3d.c:377 void HTransformX2Vect(double sy, double sz, double *p1, double *p2, THTransform *t) Transform a unitary vector along the X axis to a generic vector. Definition: htransform.c:574 Error and warning functions. void PlotBox3d(double min_x, double max_x, double min_y, double max_y, double min_z, double max_z, Tplot3d *p) Adds an axis aligned box to the current object. Definition: plot3d.c:224 void ClosePlot3d(boolean quit, double average_x, double average_y, double average_z, Tplot3d *p) Destructor. Definition: plot3d.c:473 void Plot3dObjectWithColors(unsigned int nv, unsigned int nf, unsigned int ne, double **v, Tcolor *c, unsigned int *nvf, unsigned int **fv, Tplot3d *p) Adds a colored polytope to the current object. Definition: plot3d.c:334 void PlotVect3d(unsigned int n, double *x, double *y, double *z, Tplot3d *p) Adds a polyline to the current object. Definition: plot3d.c:447 void Delay3dObject(double t, Tplot3d *p) Introduces a delay in the generation of the geometry. Definition: plot3d.c:211 void PlotLine(double *p1, double *p2, Tplot3d *p) Adds a line to the current object. Definition: plot3d.c:395 void Plot3dObjectWithColor(unsigned int nv, unsigned int nf, unsigned int ne, double **v, unsigned int *nvf, unsigned int **fv, Tcolor *c, Tplot3d *p) Adds a colored polytope to the current object. Definition: plot3d.c:304 void Move3dObject(unsigned int nobj, THTransform *t, Tplot3d *p) Moves a 3d object. Definition: plot3d.c:217 void PlotSegments(unsigned int n, double **pt, Tplot3d *p) Adds a collecion of segments to the current object. Definition: plot3d.c:412 void SetColor3dObject(unsigned int nobj, Tcolor *c, Tplot3d *p) Changes the color of an object. Definition: plot3d.c:196 void HTransformPrintT(FILE *f, THTransform *t) Prints the transpose of a homogeneous transform to a file. Definition: htransform.c:848 |
Follow us!