CFx SDK Documentation
2022 SP0
|
#include <DbPolygonMesh.h>
This class represents PolygonMesh entities in an OdDbDatabase instance.
M is the number vertices in a row, N is the number of vertices in a column. The first N vertices define the first column, the second N, the second column, etc.
The mesh may be closed in the M and/or N directions. A closed mesh is connected from the last row or column to the first.
<group OdDb_Classes>
Definition at line 76 of file DbPolygonMesh.h.
OdDbPolygonMesh::OdDbPolygonMesh | ( | ) |
OdDbObjectId OdDbPolygonMesh::appendVertex | ( | OdDbPolygonMeshVertex * | pVertex, |
OdDb::Vertex3dType | vType = OdDb::k3dSimpleVertex |
||
) |
Appends the specified vertex onto this PolygonMesh entity.
pVertex | [in] Pointer to the vertex to append. |
vType | [in] Vertex type. |
vType must be one of the following:
Value DXF 70 Description OdDb::k3dSimpleVertex 0 0x40 Standard vertex. OdDb::k3dControlVertex 1 0x10 Spline-fit or curve-fit control point. OdDb::k3dFitVertex 2 0x08 Spline-fit or curve-fit generated vertex.
void OdDbPolygonMesh::convertToPolyMeshType | ( | OdDb::PolyMeshType | polyMeshType | ) |
Uses surfaceFit() to convert mesh type of this PolygonMesh entity (DXF 75).
polyMeshType | [in] PolygonMesh type. |
Value Description OdDb::kSimpleMesh 0 Simple Mesh OdDb::kQuadSurfaceMesh 5 Quadratic B-spline fitting OdDb::kCubicSurfaceMesh 6 Cubic B-spline fitting OdDb::kBezierSurfaceMesh 8 Bezier Surface fitting
|
virtual |
Reads the .dwg file data of this object.
pFiler | [in] Filer object from which data are read. |
This function is called by dwgIn() to allow the object to read its data.
When overriding this function:
1) Call assertWriteEnabled(). 2) Call the parent class's dwgInFields(pFiler). 3) If it returns eOK, continue; otherwise return whatever the parent's dwgInFields(pFiler) returned. 4) Call the OdDbDwgFiler(pFiler) methods to read each of the object's data items in the order they were written. 5) Return pFiler->filerStatus().
Reimplemented from OdDbEntity.
|
virtual |
Writes the .dwg file data of this object.
pFiler | [in] Pointer to the filer to which data are written. |
This function is called by dwgIn() to allow the object to write its data.
When overriding this function:
1) Call assertReadEnabled(). 2) Call the parent class's dwgOutFields(pFiler). 3) Call the OdDbDwgFiler(pFiler) methods to write each of the object's data items in the order they were written.
Reimplemented from OdDbEntity.
|
virtual |
Reads the DXF format data of this object from the specified filer.
pFiler | [in] Pointer to the filer from which the data are to be read. |
This function calls this object's dxfInFields(pFiler), then loads any Xdata associated with this object.
Reimplemented from OdDbEntity.
|
virtual |
Reads the DXF data of this object.
pFiler | [in] Pointer to the filer from which data are read. |
This function is called by dxfIn() to allow the object to read its data.
When overriding this function:
1) Call assertWriteEnabled(). 2) Call the parent class's dwgInFields(pFiler). 3) If it returns eOK, continue; otherwise return whatever the parent's dxfInFields(pFiler) returned. 4) Call the OdDbDxfFiler(pFiler) methods to read each of the object's data items in the order they were written. 5) Return pFiler->filerStatus().
Reimplemented from OdDbEntity.
|
virtual |
Reads the DXF R12 format data of this object.
pFiler | [in] Pointer to the filer from which data are to be read. |
This function is called by dxfIn() to allow the object to read its data.
When overriding this function:
1) Call assertWriteEnabled(). 2) Call the parent class's dxfInFields_R12(pFiler). 3) If it returns eOK, continue; otherwise return whatever the parent's dxfOutFields_R12(pFiler) returned. 4) Call the OdDbDxfFiler(pFiler) methods to read each of the object's data items in the order they were written. 5) Return pFiler->filerStatus().
Reimplemented from OdDbEntity.
|
virtual |
Writes the DXF format data of this object to the specified filer.
pFiler | [in] Pointer to the filer to which the data are to be written. |
Reimplemented from OdDbEntity.
|
virtual |
Writes the DXF data of this object.
pFiler | [in] Pointer to the filer to which data are to be written. |
This function is called by dxfOut() to allow the object to write its data.
When overriding this function:
1) Call assertReadEnabled(). 2) Call the parent class's dxfOutFields(pFiler). 4) Use pFiler to call the OdDbDxfFiler methods to write each of the object's data items in the order they were written.
Reimplemented from OdDbEntity.
|
virtual |
Writes the DXF data of this object.
pFiler | [in] Pointer to the filer to which data are to be written. |
This function is called by dxfOut() to allow the object to write its data.
When overriding this function:
1) Call assertReadEnabled(). 2) Call the parent class's dxfOutFields(pFiler). 3) Use pFiler to call the OdDbDxfFiler methods to write each of the object's data items in the order they were written.
Reimplemented from OdDbEntity.
|
virtual |
Reimplemented from OdDbEntity.
|
virtual |
Returns the plane that contains this entity.
plane | [out] Receives the plane that contains this entity. |
planarity | [out] Receives the planarity of this entity. |
planarity and plane return values as follows::
Value Description plane kNonPlanar 0 Non-planar Not set kPlanar 1 Planar Entity plane kLinear 2 Linear Arrbitrary plane containing this entity
Reimplemented from OdDbEntity.
bool OdDbPolygonMesh::isMClosed | ( | ) | const |
Returns true if and only if this PolygonMesh entity is closed in the M direction (DXF 70, bit 0x01).
bool OdDbPolygonMesh::isNClosed | ( | ) | const |
Returns true if and only if this PolygonMesh entity is closed in the N direction (DXF 70, bit 0x20).
|
virtual |
Returns true if and only if this entity is planar.
Reimplemented from OdDbEntity.
void OdDbPolygonMesh::makeMClosed | ( | ) |
Sets this PolygonMesh entity closed in the M direction (DXF 70, bit 0x01).
void OdDbPolygonMesh::makeMOpen | ( | ) |
Sets this PolygonMesh entity opened in the M direction (DXF 70, bit 0x01).
void OdDbPolygonMesh::makeNClosed | ( | ) |
Sets this PolygonMesh entity closed in the N direction (DXF 70, bit 0x20).
void OdDbPolygonMesh::makeNOpen | ( | ) |
Sets this PolygonMesh entity opened in the N direction (DXF 70, bit 0x20).
OdInt16 OdDbPolygonMesh::mSize | ( | ) | const |
Returns the number of vertices in the M direction for this PolygonMesh entity (DXF 71).
OdInt16 OdDbPolygonMesh::mSurfaceDensity | ( | ) | const |
Returns the M surface density for this PolygonMesh entity (DXF 73).
Used instead of M if polyMeshType() != OdDb::kSimpleMesh.
OdInt16 OdDbPolygonMesh::nSize | ( | ) | const |
Returns the number of vertices in the N direction for this PolygonMesh entity (DXF 72).
OdInt16 OdDbPolygonMesh::nSurfaceDensity | ( | ) | const |
Returns the N surface density for this PolygonMesh entity (DXF 74).
Used instead of N if polyMeshType() != OdDb::kSimpleMesh.
OdDbPolygonMesh::ODDB_DECLARE_MEMBERS | ( | OdDbPolygonMesh | ) |
OdDbSequenceEndPtr OdDbPolygonMesh::openSequenceEnd | ( | OdDb::OpenMode | mode | ) |
Opens the OdDbSequenceEnd entity for this PolygonMesh entity.
mode | [in] Mode in which to open the OdDbSequenceEnd entity. |
OdDbPolygonMeshVertexPtr OdDbPolygonMesh::openVertex | ( | OdDbObjectId | vertId, |
OdDb::OpenMode | mode, | ||
bool | openErasedOne = false |
||
) |
Opens a vertex owned by this PolygonMesh entity.
vertId | [in] Object ID of vertex to be opened. |
mode | [in] Mode in which to open the vertex. |
openErasedOne | [in] If and only if true, erased objects will be opened. |
OdDb::PolyMeshType OdDbPolygonMesh::polyMeshType | ( | ) | const |
Returns the mesh type of this PolygonMesh entity (DXF 75).
Value Description OdDb::kSimpleMesh 0 Simple Mesh OdDb::kQuadSurfaceMesh 5 Quadratic B-spline fitting OdDb::kCubicSurfaceMesh 6 Cubic B-spline fitting OdDb::kBezierSurfaceMesh 8 Bezier Surface fitting
Sets the number of vertices in the M direction for this PolygonMesh entity (DXF 71).
mSize | [in] Number of vertices in M direction. |
Sets the M surface density for this PolygonMesh entity (DXF 73).
mSurfaceDensity | [in] M surface density. |
Used instead of M if polyMeshType() != OdDb::kSimpleMesh.
Sets the number of vertices in the N direction for this PolygonMesh entity (DXF 72).
nSize | [in] Number of vertices in N direction. |
Sets the M surface density for this PolygonMesh entity (DXF 74).
nSurfaceDensity | [in] N surface density. |
Used instead of N if polyMeshType() != OdDb::kSimpleMesh.
void OdDbPolygonMesh::setPolyMeshType | ( | OdDb::PolyMeshType | polyMeshType | ) |
Sets the mesh type of this PolygonMesh entity (DXF 75).
polyMeshType | [in] PolygonMesh type. |
Value Description OdDb::kSimpleMesh 0 Simple Mesh OdDb::kQuadSurfaceMesh 5 Quadratic B-spline fitting OdDb::kCubicSurfaceMesh 6 Cubic B-spline fitting OdDb::kBezierSurfaceMesh 8 Bezier Surface fitting
void OdDbPolygonMesh::straighten | ( | ) |
Removes all the surface fit vertices for this PolygonMesh entity.
|
virtual |
Called as the first operation as this object is being closed, for database -resident objects only.
When overriding this function:
1) If the OdDbObject's state is incorrect, throw exception.
2) Call parent class's subClose().
3) If other actions are required before close, do them.
The default implementation of this function does nothing. This function can be overridden in custom classes.
Reimplemented from OdDbObject.
|
virtual |
Reimplemented from OdDbEntity.
Reimplemented from OdDbEntity.
|
virtual |
Reimplemented from OdDbEntity.
|
virtual |
Reimplemented from OdDbEntity.
|
virtual |
Reimplemented from OdDbEntity.
|
virtual |
Reimplemented from OdDbEntity.
void OdDbPolygonMesh::surfaceFit | ( | ) |
Surface fits a smooth surface to this PolygonMesh entity.
void OdDbPolygonMesh::surfaceFit | ( | OdDb::PolyMeshType | surfType, |
OdInt16 | surfU, | ||
OdInt16 | surfV | ||
) |
Surface fits a smooth surface to this PolygonMesh entity.
surfType | [in] Surface type (overrides SURFTYPE system variable). |
surfU | [in] M Surface density (overrides SURFU system variable). |
surfV | [in] N Surface density (overrides SURFV system variable. |
Value Description OdDb::kQuadSurfaceMesh 5 Quadratic B-spline fitting OdDb::kCubicSurfaceMesh 6 Cubic B-spline fitting OdDb::kBezierSurfaceMesh 8 Bezier Surface fitting
OdDbObjectIteratorPtr OdDbPolygonMesh::vertexIterator | ( | ) | const |
Returns an Iterator that can be used to traverse the vertices owned by this PolygonMesh entity.