
Public Member Functions | |
| virtual long MCCOMAPI | GetNbVertices () const =0 |
| virtual I3DExVertex *MCCOMAPI | GetVertex (long indexInPolygon)=0 |
| virtual IEdge *MCCOMAPI | GetEdge (long indexInPolygon)=0 |
| virtual void MCCOMAPI | Delete ()=0 |
| virtual IFacet *MCCOMAPI | GetFacet (long indexInPolygon)=0 |
| virtual void MCCOMAPI | GetBoundingBox (TBBox3D &bbox)=0 |
| virtual void MCCOMAPI | SetSelection (boolean selected, boolean autoSelection=true)=0 |
| virtual boolean MCCOMAPI | GetSelection (boolean useSymmetry=false)=0 |
| virtual boolean MCCOMAPI | GetBestPlane (TVector3 &ii, TVector3 &jj, TVector3 &kk, TVector3 ¢er)=0 |
| virtual void MCCOMAPI | GetPolymesh (IPolymesh **iPolymesh)=0 |
| virtual void MCCOMAPI | Triangulate ()=0 |
| virtual void MCCOMAPI | SetBooleanClassification (const long classification)=0 |
| virtual const long MCCOMAPI | GetBooleanClassification ()=0 |
| virtual void MCCOMAPI | GetNormal (TVector3 &normal, boolean smoothed=true)=0 |
| virtual void MCCOMAPI | GetVertexNormal (TVector3 &normal, int32 vertexIndex)=0 |
| virtual void MCCOMAPI | GetCenter (TVector3 ¢er)=0 |
| virtual IPolygon *MCCOMAPI | Subdivide (I3DExVertex *v1, I3DExVertex *v2)=0 |
| virtual void MCCOMAPI | Subdivide (ETesselateMode mode)=0 |
| virtual IEdge *MCCOMAPI | GetOtherEdge (I3DExVertex *vertex, IEdge *edge)=0 |
| virtual IPolygon *MCCOMAPI | CloneConjugate ()=0 |
| virtual boolean MCCOMAPI | GetBestPlane2 (TVector3 &ii, TVector3 &jj, TVector3 &kk, TVector3 ¢er)=0 |
| virtual void MCCOMAPI | ClassifyPolygon (IPolymesh *object)=0 |
| virtual void MCCOMAPI | GetName (char *name)=0 |
| virtual void MCCOMAPI | SetName (char *name)=0 |
| virtual void MCCOMAPI | GetFacetInfo (int32 index, int32 *info)=0 |
| virtual uint32 MCCOMAPI | GetSmoothingID ()=0 |
| virtual int16 MCCOMAPI | GetShadingDomainID ()=0 |
| virtual void MCCOMAPI | SetShadingDomainID (int16 id)=0 |
| virtual int32 MCCOMAPI | GetUVIndexForVertex (int32 vertexIndexInPolygon)=0 |
| virtual int32 MCCOMAPI | GetUVIndexForVertex (I3DExVertex *vertex)=0 |
| virtual void MCCOMAPI | SetUVIndexForVertex (int32 vertexIndex, int32 uvIndex)=0 |
| virtual void MCCOMAPI | SetUVIndexForVertex (I3DExVertex *vertex, int32 uvIndex)=0 |
| virtual void MCCOMAPI | SetMarker (int32 marker)=0 |
| virtual int32 MCCOMAPI | GetMarker ()=0 |
| virtual int32 MCCOMAPI | GetVertexIndex (I3DExVertex *vertex)=0 |
| virtual void MCCOMAPI | Hide (boolean hide)=0 |
| virtual boolean MCCOMAPI | Hidden ()=0 |
| virtual IPolygon *MCCOMAPI | GetSymmetricalPolygon ()=0 |
| Gets the symmetrical polygon if any in the mesh and if the symmetrical modeling is enabled. | |
| long | GetNbEdges () |
| virtual long MCCOMAPI IPolygon::GetNbVertices | ( | ) | const [pure virtual] |
| virtual I3DExVertex* MCCOMAPI IPolygon::GetVertex | ( | long | indexInPolygon | ) | [pure virtual] |
Returns the indexed vertex of the polygon
| indexInPolygon | The index of the vertex to get |
| virtual IEdge* MCCOMAPI IPolygon::GetEdge | ( | long | indexInPolygon | ) | [pure virtual] |
Returns the indexed edge of the polygon
| indexInPolygon | The index of the edge to get |
| virtual void MCCOMAPI IPolygon::Delete | ( | ) | [pure virtual] |
Removes this Polygon from its Polymesh and deletes it.
| virtual IFacet* MCCOMAPI IPolygon::GetFacet | ( | long | indexInPolygon | ) | [pure virtual] |
Returns the indexed facet in the polygon
| indexInPolygon | The index of the Facet to get |
| virtual void MCCOMAPI IPolygon::GetBoundingBox | ( | TBBox3D & | bbox | ) | [pure virtual] |
Calculates the 3D bounding box of the Polygon
| bbox | Returns the bounding box |
| virtual void MCCOMAPI IPolygon::SetSelection | ( | boolean | selected, | |
| boolean | autoSelection = true | |||
| ) | [pure virtual] |
Sets the selection state of the Polygon.
| selected | If true, selects the Polygon. If false, deselects it. | |
| autoSelection | If true, completes the selection with neighboring selected vertices and edges |
| virtual boolean MCCOMAPI IPolygon::GetBestPlane | ( | TVector3 & | ii, | |
| TVector3 & | jj, | |||
| TVector3 & | kk, | |||
| TVector3 & | center | |||
| ) | [pure virtual] |
This function calculates ii, jj, and kk - an orthogonal basis for a plane approximation of the Polygon. Also computes a centroid for the vertices of the Polygon. This version of the function verifies that kk is pointing the same direction as the Polygon's normal, and flips the resulting plane if necessary.
| ii | Returns a basis vector | |
| jj | Returns a basis vector | |
| kk | Returns a basis vector | |
| center | Returns the centroid |
| virtual void MCCOMAPI IPolygon::GetPolymesh | ( | IPolymesh ** | iPolymesh | ) | [pure virtual] |
Gets the Polymesh to which this Polygon belongs
| iPolymesh | Returns the Polymesh |
| virtual void MCCOMAPI IPolygon::Triangulate | ( | ) | [pure virtual] |
Triangulates this Polygon, regardless of selection state.
| virtual void MCCOMAPI IPolygon::SetBooleanClassification | ( | const long | classification | ) | [pure virtual] |
The Boolean Classification field is an auxilliary field used to store an extra number associated with the Polygon. Do not rely on its being initialized, but you can initialize it and then use it. SetBooleanClassification sets the field for this Polygon.
| classification | Value to store in the Boolean Classification |
| virtual const long MCCOMAPI IPolygon::GetBooleanClassification | ( | ) | [pure virtual] |
The Boolean Classification field is an auxilliary field used to store an extra number associated with the Polygon. Do not rely on its being initialized, but you can initialize it and then use it. GetBooleanClassification gets the field for this Polygon.
| virtual void MCCOMAPI IPolygon::GetNormal | ( | TVector3 & | normal, | |
| boolean | smoothed = true | |||
| ) | [pure virtual] |
Returns the normal to the Polygon.
| normal | Returns the normalized vector normal to the Polygon | |
| smoothed | If true, smoothing of the edges will affect the normal computation |
| virtual void MCCOMAPI IPolygon::GetVertexNormal | ( | TVector3 & | normal, | |
| int32 | vertexIndex | |||
| ) | [pure virtual] |
Returns the normal for the indexed vertex in this Polygon
| normal | Returns the normal vector for the vertex | |
| vertexIndex | Index to the vertex |
| virtual void MCCOMAPI IPolygon::GetCenter | ( | TVector3 & | center | ) | [pure virtual] |
Returns the barycenter of the Polygon
| center | Returns the barycenter of the Polygon |
| virtual IPolygon* MCCOMAPI IPolygon::Subdivide | ( | I3DExVertex * | v1, | |
| I3DExVertex * | v2 | |||
| ) | [pure virtual] |
This Subdivide function divides the Polygon into two by creating an edge between v1 and v2.
| v1 | First vertex to split along | |
| v2 | Second vertex to split along |
| virtual void MCCOMAPI IPolygon::Subdivide | ( | ETesselateMode | mode | ) | [pure virtual] |
Subdivides the Polygon according to the mode specified in the parameter. See VMTypes.h for the list of Subdivision modes.
| mode | Tessellation mode to use in subdividing |
| virtual IEdge* MCCOMAPI IPolygon::GetOtherEdge | ( | I3DExVertex * | vertex, | |
| IEdge * | edge | |||
| ) | [pure virtual] |
Given an edge and a vertex attached to the edge, will return the other edge attached to that vertex.
| vertex | A pointer to a Vertex in the Polygon | |
| edge | A pointer to an Edge in the Polygon that contains vertex |
| virtual IPolygon* MCCOMAPI IPolygon::CloneConjugate | ( | ) | [pure virtual] |
Accessor to this Polygon's clone conjugate. Vertex Modeler specific, generally should not be used elsewhere.
| virtual boolean MCCOMAPI IPolygon::GetBestPlane2 | ( | TVector3 & | ii, | |
| TVector3 & | jj, | |||
| TVector3 & | kk, | |||
| TVector3 & | center | |||
| ) | [pure virtual] |
This function calculates ii, jj, and kk - an orthogonal basis for a plane approximation of the Polygon. Also computes a centroid for the vertices of the Polygon.
| ii | Returns a basis vector | |
| jj | Returns a basis vector | |
| kk | Returns a basis vector | |
| center | Returns the centroid |
| virtual void MCCOMAPI IPolygon::ClassifyPolygon | ( | IPolymesh * | object | ) | [pure virtual] |
This function Classifies the Polygon with respect to the Polymesh passed in the parameter. Used internally for Boolean operations. Do not use elsewhere.
| object | A pointer to the Polymesh with which to classify this Polygon. |
| virtual void MCCOMAPI IPolygon::GetName | ( | char * | name | ) | [pure virtual] |
Gets a pointer to a C string name for the Polygon. Do not use.
| name | Returns a pointer to a string containing a name for this Polygon |
| virtual void MCCOMAPI IPolygon::SetName | ( | char * | name | ) | [pure virtual] |
Sets the name of the Polygon from a C string. Do not use.
| name | A pointer to the string containing the name |
When passed an index to a facet in the Polygon, fills the array at info with the indices of the vertices in that facet.
| index | Index of the facet in question | |
| info | pointer to int32[3] to hold vertex indices |
| virtual uint32 MCCOMAPI IPolygon::GetSmoothingID | ( | ) | [pure virtual] |
| virtual int16 MCCOMAPI IPolygon::GetShadingDomainID | ( | ) | [pure virtual] |
| virtual void MCCOMAPI IPolygon::SetShadingDomainID | ( | int16 | id | ) | [pure virtual] |
Sets the shading domain to use for this Polygon.
| id | The shading domain ID to use |
Accessor for the index of the UV in the UV List of the vertex to use with the Vertex in this Polygon.
| vertexIndexInPolygon | Index of the vertex in the Polygon |
| virtual int32 MCCOMAPI IPolygon::GetUVIndexForVertex | ( | I3DExVertex * | vertex | ) | [pure virtual] |
Accessor for the index of the UV in the UV List of the vertex to use with the Vertex in this Polygon. Note that this version is slower than the one passed an index to the Vertex in the Polygon.
| vertex | Pointer to a Vertex in the Polygon |
| virtual void MCCOMAPI IPolygon::SetUVIndexForVertex | ( | int32 | vertexIndex, | |
| int32 | uvIndex | |||
| ) | [pure virtual] |
Sets the index of the UV in the UV List of the Vertex to use by the Vertex in this Polygon.
| vertexIndex | Index of the Vertex in the Polygon | |
| uvIndex | The UV index to use |
| virtual void MCCOMAPI IPolygon::SetUVIndexForVertex | ( | I3DExVertex * | vertex, | |
| int32 | uvIndex | |||
| ) | [pure virtual] |
Sets the index of the UV in the UV List of the Vertex to use by the Vertex in this Polygon. Note that this version is slower than the one passed an index to the Vertex in the Polygon.
| vertex | Pointer to the Vertex in the Polygon | |
| uvIndex | The UV index to use |
| virtual void MCCOMAPI IPolygon::SetMarker | ( | int32 | marker | ) | [pure virtual] |
Sets the polygon's marker (or index) Can be used to remember where the poly is coming from when importing an object
| virtual int32 MCCOMAPI IPolygon::GetMarker | ( | ) | [pure virtual] |
Gets the polygon's marker Can be used to remember where the poly is coming from when importing an object
| virtual int32 MCCOMAPI IPolygon::GetVertexIndex | ( | I3DExVertex * | vertex | ) | [pure virtual] |
Returns the index of the vertex in the polygon Returns kUnusedIndex if the vertex isn't used by the polygon.
| virtual void MCCOMAPI IPolygon::Hide | ( | boolean | hide | ) | [pure virtual] |
| virtual boolean MCCOMAPI IPolygon::Hidden | ( | ) | [pure virtual] |
| virtual IPolygon* MCCOMAPI IPolygon::GetSymmetricalPolygon | ( | ) | [pure virtual] |
Gets the symmetrical polygon if any in the mesh and if the symmetrical modeling is enabled.
| long IPolygon::GetNbEdges | ( | ) | [inline] |
1.5.3