Collaboration diagram for MFPolytope:
Classes | |
class | MFPolytope |
A polytope, which represents a neighborhood on a manifold. More... | |
Functions | |
MFPolytope | MFCreateHyperCubeAtOrigin (int d, double halfedge, MFErrorHandler e) |
Creates a d-dimensional hypercube whose faces are orthogonal to one coorindate axis, whose edges are length 2*halfedge, and whose center is at the origin. | |
MFPolytope | MFCreateSimplexAtOrigin (int d, double side, MFErrorHandler e) |
Creates a d-dimensional simplex. The last d-k coordinates of the kth vertex are zero. | |
void | MFSubtractHalfSpaceFromPolytope (MFPolytope P, int side, MFKVector n, double o, MFErrorHandler e) |
Removes a half space from a polytope. The positive (side>0) side is the set of points x that satisfy x.n-o>0. | |
void | MFClipPolytope (MFPolytope P, int index, double *din, int mark, MFErrorHandler e) |
Clips a polytope. index is the label to use for the new face, din[nv] is an array indicating which side of the plane each vertex lies. mark is simply an integer carried along with the face. multifario uses it to determine the polytop which lies opposite the face. | |
int | MFPolytopeDimension (MFPolytope P, MFErrorHandler e) |
returns the embedding dimension of the polytope. | |
void | MFPolytopeVertex (MFPolytope P, int i, MFKVector v, MFErrorHandler e) |
returns the embedding dimension of the polytope. | |
int | MFPolytopeVertexIndex (MFPolytope P, int v, int i, MFErrorHandler e) |
Returns an index (face number) of a vertex. | |
int | MFPolytopeNumberOfVertexIndices (MFPolytope P, int v, MFErrorHandler e) |
Returns the number of indices of a vertex (how many faces it lies on). | |
double | MFPolytopeRadiusOfVertex (MFPolytope P, int v, MFErrorHandler e) |
Returns the distance between a vertex and the origin. | |
double | MFPolytopeLargestRadiusOfVertex (MFPolytope P, MFErrorHandler e) |
Returns the largest distance between a vertex and the origin over all the vertices. | |
int | MFPolytopeNumberOfFaces (MFPolytope P, MFErrorHandler e) |
Returns the number of faces of the polytope. | |
int | MFPolytopeFaceIndex (MFPolytope P, int f, MFErrorHandler e) |
Returns the index of a face. | |
MFKVector | MFPolytopeFaceNormal (MFPolytope P, int f, MFErrorHandler e) |
Returns the nroaml to a face. | |
double | MFPolytopeFaceOrigin (MFPolytope P, int f, MFErrorHandler e) |
Returns the origin of a face (the signed distance from the origin along the normal to the face). | |
int | MFPolytopeNumberOfVerticesOnFace (MFPolytope P, int f, MFErrorHandler e) |
Returns the number of vertices that lie on a face. | |
int | MFPolytopeInterior (MFPolytope P, MFKVector x, MFErrorHandler e) |
Returns TRUE if x is inside the polytope. | |
MFPolytope | MFPolytopeRemoveSmallEdges (MFPolytope P, double epsilon, MFErrorHandler e) |
Returns a new polytope which has no edges shorter than epsilon. This is done by merging the endpoints of such edges. | |
int | MFPolytopeClosestFace (MFPolytope P, MFKVector x, double *d, MFErrorHandler e) |
Finds the closest face to a point. | |
void | MFPolytopeSetVertexMark (MFPolytope P, int v, int mark, MFErrorHandler e) |
Sets the mark associated with a vertex. | |
void | MFRefPolytope (MFPolytope polytope, MFErrorHandler e) |
Adds a reference to a polytope. | |
void | MFFreePolytope (MFPolytope polytope, MFErrorHandler e) |
Frees a reference to a polytope, and deletes the polytope if there are no references left. | |
void | MFWritePolytope (FILE *fid, MFPolytope polytope, MFErrorHandler e) |
Writes a polytope to a file. | |
MFPolytope | MFReadPolytope (FILE *fid, MFAtlas A, MFErrorHandler e) |
Reads a polytope from a file. |
|
Clips a polytope. index is the label to use for the new face, din[nv] is an array indicating which side of the plane each vertex lies. mark is simply an integer carried along with the face. multifario uses it to determine the polytop which lies opposite the face.
|
|
Creates a d-dimensional hypercube whose faces are orthogonal to one coorindate axis, whose edges are length 2*halfedge, and whose center is at the origin.
|
|
Creates a d-dimensional simplex. The last d-k coordinates of the kth vertex are zero.
|
|
Frees a reference to a polytope, and deletes the polytope if there are no references left.
|
|
Finds the closest face to a point.
|
|
returns the embedding dimension of the polytope.
|
|
Returns the index of a face.
|
|
Returns the nroaml to a face.
|
|
Returns the origin of a face (the signed distance from the origin along the normal to the face).
|
|
Returns TRUE if x is inside the polytope.
|
|
Returns the largest distance between a vertex and the origin over all the vertices.
|
|
Returns the number of faces of the polytope.
|
|
Returns the number of indices of a vertex (how many faces it lies on).
|
|
Returns the number of vertices that lie on a face.
|
|
Returns the distance between a vertex and the origin.
|
|
Returns a new polytope which has no edges shorter than epsilon. This is done by merging the endpoints of such edges.
|
|
Sets the mark associated with a vertex.
|
|
returns the embedding dimension of the polytope.
|
|
Returns an index (face number) of a vertex.
|
|
Reads a polytope from a file.
|
|
Adds a reference to a polytope.
|
|
Removes a half space from a polytope. The positive (side>0) side is the set of points x that satisfy x.n-o>0.
|
|
Writes a polytope to a file.
|