Class MeshPart
Represents the graphical representation of a Part.
Inheritance
RobotStudio.API.Internal.MeshBase
MeshPart
Assembly: ABB.Robotics.RobotStudio.Stations.dll
Syntax
public sealed class MeshPart : MeshBase
Constructors
MeshPart()
Declaration
MeshPart(IEnumerable<MeshBody>)
Creates a MeshPart that contains MeshBody objects from the specified collection.
Declaration
public MeshPart(IEnumerable<MeshBody> bodies)
Parameters
Properties
Bodies
Declaration
public List<MeshBody> Bodies { get; }
Property Value
Methods
Clone()
Declaration
Returns
GetAllFaces()
Declaration
public IEnumerable<MeshFace> GetAllFaces()
Returns
GetBoundingBox()
Declaration
public BoundingBox GetBoundingBox()
Returns
Optimize(OptimizeMeshParameters, ProgressNotification)
Merges faces and vertices to improve memory usage and rendering performance.
Declaration
public void Optimize(OptimizeMeshParameters parameters, ProgressNotification progress)
Parameters
SetMaterial(Material)
Declaration
public void SetMaterial(Material material)
Parameters
Transforms all vertices and normals in the MeshPart.
Declaration
public void Transform(Matrix4 matrix)
Parameters
Type |
Name |
Description |
Matrix4 |
matrix |
|
Transforms all vertices and normals in the MeshPart.
Declaration
public void Transform(Matrix4 matrix, ProgressNotification progress)
Parameters
TraverseFaces(Action<MeshFace>)
Declaration
public void TraverseFaces(Action<MeshFace> action)
Parameters