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:1440 void NewSegments(unsigned int n, double *x, double *y, double *z, Tcolor *c, Tpolyhedron *p) Constructor. Definition: polyhedron.c:1098 boolean EmptyPolyhedron(Tpolyhedron *p) Used for objects that failed to initialize. Definition: polyhedron.c:856 unsigned int GetPolyhedronNVertex(Tpolyhedron *p) Gets the number of vertexes of a polyhedron. Definition: polyhedron.c:1393 void GetPolyhedronCenter(double *c, Tpolyhedron *p) Gets the center of the spheres. Definition: polyhedron.c:1353 Data structure to hold the information about the name of a file. Definition: filename.h:271 void PolyhedronPrintCenterAndRadius(FILE *f, THTransform *t, Tpolyhedron *p) Prints the center and the radius of a sphere to a file. Definition: polyhedron.c:1505 A homgeneous transform in R^3. void PlotPolyhedron(Tplot3d *pt, Tpolyhedron *p) Adds the polyhedron to a 3D geometry. Definition: polyhedron.c:1463 void NewTriangularPrism(double *p1, double *p2, double *p3, double h, Tcolor *c, unsigned int bs, Tpolyhedron *p) Constructor. Definition: polyhedron.c:861 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:1020 void PrintPolyhedron(FILE *f, char *path, char *label, unsigned int n, Tpolyhedron *p) Stores the polyhedron information into a file. Definition: polyhedron.c:1574 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:946 void NewSpring(double length, double start, double rad, unsigned int lps, Tcolor *c, Tpolyhedron *p) Defines a spring. Definition: polyhedron.c:1145 void GetPolyhedronVertex(unsigned int i, double *point, Tpolyhedron *p) Gets a vertex of a polyhedron. Definition: polyhedron.c:1447 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:1383 void NewCylinder(double r, double *p1, double *p2, Tcolor *c, unsigned int gr, unsigned int bs, Tpolyhedron *p) Constructor. Definition: polyhedron.c:1044 Definition of the THTransform type and the associated functions. void GetPolyhedronColor(Tcolor *c, Tpolyhedron *p) Gets the color of a polyhedron. Definition: polyhedron.c:1373 double GetPolyhedronMaxCoordinate(Tpolyhedron *p) Returns the maximum coordinate value used in a polyhedron. Definition: polyhedron.c:1458 void InitPolyhedronFromFile(Tfilename *fname, Tcolor *c, unsigned int gr, unsigned int bs, Tpolyhedron *p) Constructor. Definition: polyhedron.c:727 void SetPolyhedronColor(Tcolor *c, Tpolyhedron *p) Changes the color of a polyhedron. Definition: polyhedron.c:1368 unsigned int GetPolyhedronStatus(Tpolyhedron *p) Gets the status of a polyhedron (NORMAL, HIDDEN, DECOR). Definition: polyhedron.c:1378 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:1517 void SavePolyhedron(char *fileName, Tpolyhedron *p) Stores the geometic information of a polyhedron into a file. Definition: polyhedron.c:1523 void GetPolyhedronDefiningPoint(unsigned int i, double *point, Tpolyhedron *p) Gets a point defining a a object. Definition: polyhedron.c:1398 void TransformPolyhedron(THTransform *t, Tpolyhedron *p) Applies a homogenoeus transform to a polyhedron. Definition: polyhedron.c:1321 void CopyPolyhedron(Tpolyhedron *p_dst, Tpolyhedron *p_src) Copy constructor. Definition: polyhedron.c:1259 void PolyhedronPrintCenter(FILE *f, THTransform *t, Tpolyhedron *p) Prints the center of a sphere to a file. Definition: polyhedron.c:1493 unsigned int GetPolyhedronType(Tpolyhedron *p) Retrives the type of a polyhedron. Definition: polyhedron.c:1363 void NewLine(double *p1, double *p2, Tcolor *c, unsigned int bs, Tpolyhedron *p) Constructor. Definition: polyhedron.c:1071 |
Follow us!