polyhedron.h
Go to the documentation of this file.
void InitPolyhedronFromTriangles(unsigned int nv, double **v, unsigned int nt, unsigned int **t, Tcolor *c, unsigned int bs, Tpolyhedron *p) Constructor. Definition: polyhedron.c:801 double GetPolyhedronRadius(Tpolyhedron *p) Returns the radius used in the definition of the object. Definition: polyhedron.c:1232 void NewSegments(unsigned int n, double *x, double *y, double *z, Tcolor *c, Tpolyhedron *p) Constructor. Definition: polyhedron.c:1004 unsigned int GetPolyhedronNVertex(Tpolyhedron *p) Gets the number of vertexes of a polyhedron. Definition: polyhedron.c:1185 void GetPolyhedronCenter(double *c, Tpolyhedron *p) Gets the center of the spheres. Definition: polyhedron.c:1145 Data structure to hold the information about the name of a file. Definition: filename.h:248 A homgeneous transform in R^3. void PlotPolyhedron(Tplot3d *pt, Tpolyhedron *p) Adds the polyhedron to a 3D geometry. Definition: polyhedron.c:1255 Definition of the Tfilename type and the associated functions. Definition of the Tplot3d type and the associated functions. void NewSphere(double r, double *center, Tcolor *c, unsigned int gr, unsigned int bs, Tpolyhedron *p) Constructor. Definition: polyhedron.c:926 void PrintPolyhedron(FILE *f, char *path, char *label, unsigned int n, Tpolyhedron *p) Stores the polyhedron information into a file. Definition: polyhedron.c:1366 void NewBox(double xl, double yl, double zl, double xu, double yu, double zu, Tcolor *c, unsigned int bs, Tpolyhedron *p) Constructor. Definition: polyhedron.c:857 void GetPolyhedronVertex(unsigned int i, double *point, Tpolyhedron *p) Gets a vertex of a polyhedron. Definition: polyhedron.c:1239 void GetOFFInfo(unsigned int *nv, double ***v, unsigned int *nf, unsigned int **nvf, unsigned int ***fv, Tpolyhedron *p) Gets the OFF information. Definition: polyhedron.c:1175 void NewCylinder(double r, double *p1, double *p2, Tcolor *c, unsigned int gr, unsigned int bs, Tpolyhedron *p) Constructor. Definition: polyhedron.c:950 Definition of the THTransform type and the associated functions. void GetPolyhedronColor(Tcolor *c, Tpolyhedron *p) Gets the color of a polyhedron. Definition: polyhedron.c:1165 double GetPolyhedronMaxCoordinate(Tpolyhedron *p) Returns the maximum coordinate value used in a polyhedron. Definition: polyhedron.c:1250 void InitPolyhedronFromFile(Tfilename *fname, Tcolor *c, unsigned int gr, unsigned int bs, Tpolyhedron *p) Constructor. Definition: polyhedron.c:727 void PolyhedronPrintCenterAndCenter(FILE *f, THTransform *t, Tpolyhedron *p) Prints the center and the radius of a sphere to a file. Definition: polyhedron.c:1297 void SetPolyhedronColor(Tcolor *c, Tpolyhedron *p) Changes the color of a polyhedron. Definition: polyhedron.c:1160 unsigned int GetPolyhedronStatus(Tpolyhedron *p) Gets the status of a polyhedron (NORMAL, HIDDEN, DECOR). Definition: polyhedron.c:1170 Definition of the Tcolor type and the associated functions. void MovePolyhedron(Tplot3d *pt, THTransform *t, Tpolyhedron *p) Moves an object previously added to a 3D scene. Definition: polyhedron.c:1309 void SavePolyhedron(char *fileName, Tpolyhedron *p) Stores the geometic information of a polyhedron into a file. Definition: polyhedron.c:1315 void GetPolyhedronDefiningPoint(unsigned int i, double *point, Tpolyhedron *p) Gets a point defining a a object. Definition: polyhedron.c:1190 void TransformPolyhedron(THTransform *t, Tpolyhedron *p) Applies a homogenoeus transform to a polyhedron. Definition: polyhedron.c:1113 void CopyPolyhedron(Tpolyhedron *p_dst, Tpolyhedron *p_src) Copy constructor. Definition: polyhedron.c:1051 void PolyhedronPrintCenter(FILE *f, THTransform *t, Tpolyhedron *p) Prints the center of a sphere to a file. Definition: polyhedron.c:1285 unsigned int GetPolyhedronType(Tpolyhedron *p) Retrives the type of a polyhedron. Definition: polyhedron.c:1155 void NewLine(double *p1, double *p2, Tcolor *c, unsigned int bs, Tpolyhedron *p) Constructor. Definition: polyhedron.c:977 |
Follow us!