Class Potree2Reader
Reads Potree V2 files and is able to create a point cloud scene component, that can be rendered.
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Fusee.PointCloud.Potree.V2
Assembly: Fusee.PointCloud.Potree.dll
Syntax
public class Potree2Reader : Potree2RwBase, IPointReader
Constructors
Potree2Reader(ref PotreeData)
Initializes a Potree 2 reader for the given Potree dataset
Declaration
public Potree2Reader(ref PotreeData potreeData)
Parameters
| Type | Name | Description |
|---|---|---|
| PotreeData | potreeData |
Methods
GetOctree()
Reads the Potree file and returns an octree.
Declaration
public IPointCloudOctree GetOctree()
Returns
| Type | Description |
|---|---|
| IPointCloudOctree |
GetPointCloudComponent(RenderMode)
Returns a renderable point cloud component.
Declaration
public IPointCloud GetPointCloudComponent(RenderMode renderMode = RenderMode.StaticMesh)
Parameters
| Type | Name | Description |
|---|---|---|
| RenderMode | renderMode | Determines which RenderMode is used to display the returned point cloud."/> |
Returns
| Type | Description |
|---|---|
| IPointCloud |
LoadNodeData<TPoint>(OctantId)
Returns the points for one octant as generic array.
Declaration
public TPoint[] LoadNodeData<TPoint>(OctantId id)
where TPoint : new()
Parameters
| Type | Name | Description |
|---|---|---|
| OctantId | id | The unique id of the octant. |
Returns
| Type | Description |
|---|---|
| TPoint[] |
Type Parameters
| Name | Description |
|---|---|
| TPoint | The generic point type. |
LoadNodeData<TPoint>(PotreeNode)
Declaration
public TPoint[] LoadNodeData<TPoint>(PotreeNode potreeNode)
where TPoint : new()
Parameters
| Type | Name | Description |
|---|---|---|
| PotreeNode | potreeNode |
Returns
| Type | Description |
|---|---|
| TPoint[] |
Type Parameters
| Name | Description |
|---|---|
| TPoint |
ReadRawPoints<TPotreePoint>(OctantId)
Declaration
public TPotreePoint[] ReadRawPoints<TPotreePoint>(OctantId oid)
where TPotreePoint : PotreePoint, new()
Parameters
| Type | Name | Description |
|---|---|---|
| OctantId | oid |
Returns
| Type | Description |
|---|---|
| TPotreePoint[] |
Type Parameters
| Name | Description |
|---|---|
| TPotreePoint |