Class MeshPart
Represents the graphical representation of a Part.
Inheritance
object
MeshBase
MeshPart
Namespace: ABB.Robotics.RobotStudio.Stations
Assembly: ABB.Robotics.RobotStudio.Stations.dll
Syntax
public sealed class MeshPart : MeshBase
Constructors
View SourceMeshPart()
Creates an empty MeshPart.
Declaration
public MeshPart()
MeshPart(IEnumerable<MeshBody>)
Declaration
public MeshPart(IEnumerable<MeshBody> bodies)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<MeshBody> | bodies |
Properties
View SourceBodies
Declaration
public List<MeshBody> Bodies { get; }
Property Value
| Type | Description |
|---|---|
| List<MeshBody> |
Methods
View SourceClone()
Returns a deep clone of this MeshPart.
Declaration
public MeshPart Clone()
Returns
| Type | Description |
|---|---|
| MeshPart | The cloned MeshPart. |
GetAllFaces()
Declaration
public IEnumerable<MeshFace> GetAllFaces()
Returns
| Type | Description |
|---|---|
| IEnumerable<MeshFace> |
GetBoundingBox()
Calculates the BoundingBox of this MeshPart.
Declaration
public BoundingBox GetBoundingBox()
Returns
| Type | Description |
|---|---|
| BoundingBox |
Optimize(OptimizeMeshParameters, ProgressNotification)
Merges faces and vertices to improve memory usage and rendering performance.
Declaration
public void Optimize(OptimizeMeshParameters parameters, ProgressNotification progress)
Parameters
| Type | Name | Description |
|---|---|---|
| OptimizeMeshParameters | parameters | |
| ProgressNotification | progress |
Remarks
View SourceSetMaterial(Material)
Declaration
public void SetMaterial(Material material)
Parameters
| Type | Name | Description |
|---|---|---|
| Material | material |
Transform(Matrix4)
Transforms all vertices and normals in the MeshPart.
Declaration
public void Transform(Matrix4 matrix)
Parameters
| Type | Name | Description |
|---|---|---|
| Matrix4 | matrix |
Transform(Matrix4, ProgressNotification)
Transforms all vertices and normals in the MeshPart.
Declaration
public void Transform(Matrix4 matrix, ProgressNotification progress)
Parameters
| Type | Name | Description |
|---|---|---|
| Matrix4 | matrix | |
| ProgressNotification | progress |
TraverseFaces(Action<MeshFace>)
Declaration
public void TraverseFaces(Action<MeshFace> action)
Parameters
| Type | Name | Description |
|---|---|---|
| Action<MeshFace> | action |