Struct TriangularSurface<T>
Implements
System.IDisposable
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: ProjectDawn.Geometry3D
Assembly: ProjectDawn.Geometry.dll
Syntax
public struct TriangularSurface<T> : IDisposable where T : struct, ITransformFloat3
Type Parameters
| Name | Description |
|---|---|
| T |
Constructors
| Improve this Doc View SourceTriangularSurface(Allocator, T)
Declaration
public TriangularSurface(Allocator allocator, T transform = default(T))
Parameters
| Type | Name | Description |
|---|---|---|
| Unity.Collections.Allocator | allocator | |
| T | transform |
Fields
| Improve this Doc View SourceIndices
Surfaces triangles.
Declaration
public NativeList<int3> Indices
Field Value
| Type | Description |
|---|---|
| Unity.Collections.NativeList<Unity.Mathematics.int3> |
Transform
Surface transformer.
Declaration
public T Transform
Field Value
| Type | Description |
|---|---|
| T |
Vertices
Surface vertices.
Declaration
public NativeList<float3> Vertices
Field Value
| Type | Description |
|---|---|
| Unity.Collections.NativeList<Unity.Mathematics.float3> |
Properties
| Improve this Doc View SourceIsCreated
Returns if the surface is allocated.
Declaration
public bool IsCreated { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
NumTriangles
Returns the number of triangles.
Declaration
public int NumTriangles { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Methods
| Improve this Doc View SourceDispose()
Declaration
public void Dispose()
GetTriangle(Int32)
Returns world space triangle at index.
Declaration
public Triangle GetTriangle(int triangleIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | triangleIndex | Index of triangle |
Returns
| Type | Description |
|---|---|
| Triangle | Returns world space triangle at index. |
Intersection(TriangularSurface<T>, NativeList<SurfaceLineIntersection>)
Returns surfaces intersections.
Declaration
public void Intersection(TriangularSurface<T> surface, NativeList<SurfaceLineIntersection> intersections)
Parameters
| Type | Name | Description |
|---|---|---|
| TriangularSurface<T> | surface | Surface. |
| Unity.Collections.NativeList<SurfaceLineIntersection> | intersections | Intersection data. |
Implements
System.IDisposable