Class MeshMaker
Static class that provides generic methods that take point cloud points and return GpuMeshs.
Inheritance
Inherited Members
Namespace: Fusee.PointCloud.Core
Assembly: Fusee.PointCloud.Core.dll
Syntax
public static class MeshMaker
Methods
CreateDynamicMeshPosD3ColF3LblB<TPoint>(PointAccessor<TPoint>, TPoint[], OctantId)
Returns meshes for point clouds of type PosD3LblB.
Declaration
public static Mesh CreateDynamicMeshPosD3ColF3LblB<TPoint>(PointAccessor<TPoint> pointAccessor, TPoint[] points, OctantId octantId)
Parameters
Type | Name | Description |
---|---|---|
PointAccessor<TPoint> | pointAccessor | The point accessor allows access to the point data without casting to explicit a explicit point type."/> |
TPoint[] | points | The lists of "raw" points. |
OctantId | octantId | The id of the octant. |
Returns
Type | Description |
---|---|
Mesh |
Type Parameters
Name | Description |
---|---|
TPoint |
CreateInstanceData<TGpuData, TPoint>(PointAccessor<TPoint>, TPoint[], CreateGpuData<TGpuData, TPoint>, OctantId)
Returns the instance Data for a given point type by using the provided delegate.
Declaration
public static IEnumerable<TGpuData> CreateInstanceData<TGpuData, TPoint>(PointAccessor<TPoint> pointAccessor, TPoint[] points, CreateGpuData<TGpuData, TPoint> createGpuDataHandler, OctantId octantId)
Parameters
Type | Name | Description |
---|---|---|
PointAccessor<TPoint> | pointAccessor | The point accessor allows access to the point data without casting to a explicit point type."/> |
TPoint[] | points | The generic point cloud points. |
CreateGpuData<TGpuData, TPoint> | createGpuDataHandler | The method that defines how to create a InstanceData from the point cloud points. |
OctantId | octantId |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<TGpuData> |
Type Parameters
Name | Description |
---|---|
TGpuData | Can be of type GpuMesh or InstanceData. The latter is used when rendering instanced. |
TPoint | The generic point type. |
CreateInstanceDataPosD3ColF3LblB<TPoint>(PointAccessor<TPoint>, TPoint[], OctantId)
Returns meshes for point clouds of type PosD3LblB.
Declaration
public static InstanceData CreateInstanceDataPosD3ColF3LblB<TPoint>(PointAccessor<TPoint> pointAccessor, TPoint[] points, OctantId octantId)
Parameters
Type | Name | Description |
---|---|---|
PointAccessor<TPoint> | pointAccessor | The point accessor allows access to the point data without casting to explicit a explicit point type."/> |
TPoint[] | points | The lists of "raw" points. |
OctantId | octantId | The id of the octant. |
Returns
Type | Description |
---|---|
InstanceData |
Type Parameters
Name | Description |
---|---|
TPoint |
CreateMeshes<TGpuData, TPoint>(PointAccessor<TPoint>, TPoint[], CreateGpuData<TGpuData, TPoint>, OctantId)
Generic method that creates meshes with 65k points maximum.
Declaration
public static IEnumerable<TGpuData> CreateMeshes<TGpuData, TPoint>(PointAccessor<TPoint> pointAccessor, TPoint[] points, CreateGpuData<TGpuData, TPoint> createGpuDataHandler, OctantId octantId)
Parameters
Type | Name | Description |
---|---|---|
PointAccessor<TPoint> | pointAccessor | The point accessor allows access to the point data without casting to a explicit point type."/> |
TPoint[] | points | The generic point cloud points. |
CreateGpuData<TGpuData, TPoint> | createGpuDataHandler | The method that defines how to create a GpuMesh from the point cloud points. |
OctantId | octantId |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<TGpuData> |
Type Parameters
Name | Description |
---|---|
TGpuData | |
TPoint |
CreateMeshPosD3<TPoint>(PointAccessor<TPoint>, TPoint[])
Returns meshes for point clouds of type PosD3.
Declaration
public static GpuMesh CreateMeshPosD3<TPoint>(PointAccessor<TPoint> pointAccessor, TPoint[] points)
Parameters
Type | Name | Description |
---|---|---|
PointAccessor<TPoint> | pointAccessor | The point accessor allows access to the point data without casting to explicit a explicit point type."/> |
TPoint[] | points | The lists of "raw" points. |
Returns
Type | Description |
---|---|
GpuMesh |
Type Parameters
Name | Description |
---|---|
TPoint |
CreateMeshPosD3ColF3LblB<TPoint>(PointAccessor<TPoint>, TPoint[], OctantId)
Returns meshes for point clouds of type PosD3LblB.
Declaration
public static GpuMesh CreateMeshPosD3ColF3LblB<TPoint>(PointAccessor<TPoint> pointAccessor, TPoint[] points, OctantId octantId)
Parameters
Type | Name | Description |
---|---|---|
PointAccessor<TPoint> | pointAccessor | The point accessor allows access to the point data without casting to explicit a explicit point type."/> |
TPoint[] | points | The lists of "raw" points. |
OctantId | octantId | The id of the octant. |
Returns
Type | Description |
---|---|
GpuMesh |
Type Parameters
Name | Description |
---|---|
TPoint |