Class Mesh
Immutable indexed triangle geometry. Counterclockwise vertices face outward; both sides render by default.
Inherited Members
Namespace: Simple3D.Core
Assembly: Simple3D.Core.dll
Syntax
public sealed class Mesh
Constructors
| Edit this page View SourceMesh(IEnumerable<Vector3>, IEnumerable<int>)
Copies and validates finite vertices, index ranges and nondegenerate triangles. Empty meshes are allowed. Triangles whose single-precision area overflows or underflows are rejected.
Declaration
public Mesh(IEnumerable<Vector3> vertices, IEnumerable<int> indices)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<Vector3> | vertices | |
| IEnumerable<int> | indices |
Fields
| Edit this page View SourceMaximumElements
Maximum number of vertices or triangles accepted in one mesh.
Declaration
public const int MaximumElements = 1000000
Field Value
| Type | Description |
|---|---|
| int |
Properties
| Edit this page View SourceIndices
Copied vertex indices, three per triangle.
Declaration
public IReadOnlyList<int> Indices { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<int> |
TriangleCount
Number of triangles.
Declaration
public int TriangleCount { get; }
Property Value
| Type | Description |
|---|---|
| int |
Vertices
Copied vertices in local coordinates.
Declaration
public IReadOnlyList<Vector3> Vertices { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<Vector3> |