CSlice¶
-
class
Lib3MF
::
CSlice
: public CBase¶ -
void
SetVertices
(const CInputVector<sPosition2D> &VerticesBuffer)¶ Set all vertices of a slice. All polygons will be cleared.
- Parameters
VerticesBuffer – contains the positions.
-
void
GetVertices
(std::vector<sPosition2D> &VerticesBuffer)¶ Get all vertices of a slice
- Parameters
VerticesBuffer – contains the positions.
-
Lib3MF_uint64
GetVertexCount
()¶ Get the number of vertices in a slice
- Returns
the number of vertices in the slice
-
Lib3MF_uint64
AddPolygon
(const CInputVector<Lib3MF_uint32> &IndicesBuffer)¶ Add a new polygon to this slice
- Parameters
IndicesBuffer – the new indices of the new polygon
- Returns
the index of the new polygon
-
Lib3MF_uint64
GetPolygonCount
()¶ Get the number of polygons in the slice
- Returns
the number of polygons in the slice
-
void
SetPolygonIndices
(const Lib3MF_uint64 nIndex, const CInputVector<Lib3MF_uint32> &IndicesBuffer)¶ Set all indices of a polygon
- Parameters
nIndex – the index of the polygon to manipulate
IndicesBuffer – the new indices of the index-th polygon
-
void
GetPolygonIndices
(const Lib3MF_uint64 nIndex, std::vector<Lib3MF_uint32> &IndicesBuffer)¶ Get all vertices of a slice
- Parameters
nIndex – the index of the polygon to manipulate
IndicesBuffer – the indices of the index-th polygon
-
Lib3MF_uint64
GetPolygonIndexCount
(const Lib3MF_uint64 nIndex)¶ Get the number of vertices in a slice
- Parameters
nIndex – the index of the polygon to manipulate
- Returns
the number of indices of the index-th polygon
-
Lib3MF_double
GetZTop
()¶ Get the upper Z-Coordinate of this slice.
- Returns
the upper Z-Coordinate of this slice
-
void