Show / Hide Table of Contents

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 Source

MeshPart()

Creates an empty MeshPart.

Declaration
public MeshPart()
View Source

MeshPart(IEnumerable<MeshBody>)

Creates a MeshPart that contains MeshBody objects from the specified collection.

Declaration
public MeshPart(IEnumerable<MeshBody> bodies)
Parameters
Type Name Description
IEnumerable<MeshBody> bodies

Properties

View Source

Bodies

Gets the list of MeshBody objects contained in this MeshPart.

Declaration
public List<MeshBody> Bodies { get; }
Property Value
Type Description
List<MeshBody>

Methods

View Source

Clone()

Returns a deep clone of this MeshPart.

Declaration
public MeshPart Clone()
Returns
Type Description
MeshPart

The cloned MeshPart.

View Source

GetAllFaces()

Returns all MeshFace objects in this MeshPart

Declaration
public IEnumerable<MeshFace> GetAllFaces()
Returns
Type Description
IEnumerable<MeshFace>
View Source

GetBoundingBox()

Calculates the BoundingBox of this MeshPart.

Declaration
public BoundingBox GetBoundingBox()
Returns
Type Description
BoundingBox
View Source

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

All MeshBody and MeshFace objects will be reconstructed.

View Source

SetMaterial(Material)

Sets the Material of all MeshFace objects in this MeshPart.

Declaration
public void SetMaterial(Material material)
Parameters
Type Name Description
Material material
View Source

Transform(Matrix4)

Transforms all vertices and normals in the MeshPart.

Declaration
public void Transform(Matrix4 matrix)
Parameters
Type Name Description
Matrix4 matrix
View Source

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
View Source

TraverseFaces(Action<MeshFace>)

Performs an action on all MeshFace objects in this MeshPart.

Declaration
public void TraverseFaces(Action<MeshFace> action)
Parameters
Type Name Description
Action<MeshFace> action
  • View Source
In this article
Back to top Copyright © 2025 ABB