Part class is used to specify a part.
The class can be called from Model or PartGroup class.
More...
Public Member Functions | |
| double | Area () |
| Returns area for a part in a 2D model. More... | |
| Point * | CentroidPosition () |
| Returns the postiion of the centroid of a part. More... | |
| String | GetColor () |
| Returns part color. More... | |
| Variant | GetEdgeIDs () |
| Returns the edge ID for a part. More... | |
| Variant | GetFaceIDs () |
| Returns the face ID for a part. More... | |
| String | GetName () |
| Returns part name. More... | |
| double | GetTransparency () |
| Returns the transparency of a part. More... | |
| Variant | GetVertexIDs () |
| Returns the the vertex ID for a part. More... | |
| int | ID () |
| Returns the ID of the part. | |
| bool | IsValid () |
| Returns True if an object is valid. More... | |
| bool | IsVisible () |
| Returns the visibility of a part. More... | |
| int | NumEdges () |
| Returns the number of edges on a part. More... | |
| int | NumFaces () |
| Returns the number of faces on a part. More... | |
| int | NumVertices () |
| Returns the number of vertices on a part. More... | |
| Point * | PointInPart () |
| Returns the position in a part in a 2D model. More... | |
| void | SetColor (String &color) |
| Specifies part color. More... | |
| void | SetName (String &name) |
| Specifies part name. More... | |
| void | SetTransparency (double transparency) |
| Specifies the degree of transparency of the part. More... | |
| void | SetVisibility (bool visibility) |
| Specifies the visibility of the part. More... | |
| double | Volume () |
| Returns the volume of a part in a 3D model. More... | |
Part class is used to specify a part.
The class can be called from Model or PartGroup class.
Example of obtaining the class object:
| double Part::Area | ( | ) |
Returns area for a part in a 2D model.
Returns 0 for 3D model.
| Point * Part::CentroidPosition | ( | ) |
Returns the postiion of the centroid of a part.
| String Part::GetColor | ( | ) |
Returns part color.
| Variant Part::GetEdgeIDs | ( | ) |
Returns the edge ID for a part.
| Variant Part::GetFaceIDs | ( | ) |
Returns the face ID for a part.
| String Part::GetName | ( | ) |
Returns part name.
| double Part::GetTransparency | ( | ) |
Returns the transparency of a part.
| Variant Part::GetVertexIDs | ( | ) |
Returns the the vertex ID for a part.
| bool Part::IsValid | ( | ) |
Returns True if an object is valid.
| bool Part::IsVisible | ( | ) |
Returns the visibility of a part.
| int Part::NumEdges | ( | ) |
Returns the number of edges on a part.
| int Part::NumFaces | ( | ) |
Returns the number of faces on a part.
| int Part::NumVertices | ( | ) |
Returns the number of vertices on a part.
| Point * Part::PointInPart | ( | ) |
Returns the position in a part in a 2D model.
| void Part::SetColor | ( | String & | color | ) |
Specifies part color.
| color | Part color |
The colors can be specified with the following methods
| void Part::SetName | ( | String & | name | ) |
Specifies part name.
| name | Part name |
| void Part::SetTransparency | ( | double | trans | ) |
Specifies the degree of transparency of the part.
| trans | Transparency (0 to 1) |
| void Part::SetVisibility | ( | bool | visibility | ) |
Specifies the visibility of the part.
| visibility | Visibility (true or false) |
| double Part::Volume | ( | ) |
Returns the volume of a part in a 3D model.