Class NwcMesh
- Namespace
- NwcIO.Model
- Assembly
- NwcIO.dll
A 3D polygon mesh extracted from Navisworks geometry streams, composed of 3D vertices, triangle indices, and local/world bounding boxes.
public sealed class NwcMeshInheritance
Inherited Members
Properties
BoundingBox
Axis-aligned bounding box of the mesh in local coordinates.
public BoundingBox3d? BoundingBox { get; init; }Property Value
Id
public required int Id { get; init; }Property Value
Indices
Triangle vertex index triplets (0-based indexing into NwcIO.Model.NwcMesh.Vertices). Every 3 consecutive integers define one triangle face: (i0, i1, i2).
public required IReadOnlyList<int> Indices { get; init; }Property Value
Material
Surface material and color assigned to this mesh.
public NwcMaterial? Material { get; set; }Property Value
Name
public string Name { get; set; }Property Value
Node
Owning scene hierarchy node associated with this mesh.
public NwcNode? Node { get; set; }Property Value
Transform
Optional 3D world transformation associated with this mesh instance.
public NwcTransform? Transform { get; set; }Property Value
TriangleCount
Number of triangle faces in this mesh.
public int TriangleCount { get; }Property Value
Vertices
Vertex positions in local mesh space.
public required IReadOnlyList<Vector3d> Vertices { get; init; }Property Value
Methods
GetWorldBoundingBox()
Gets the axis-aligned bounding box of the mesh in world space coordinates.
public BoundingBox3d GetWorldBoundingBox()Returns
GetWorldVertices()
Returns vertices transformed into world space coordinates by NwcIO.Model.NwcMesh.Transform. If no transform is assigned, returns NwcIO.Model.NwcMesh.Vertices.
public IReadOnlyList<Vector3d> GetWorldVertices()