Show / Hide Table of Contents

Class Potree2CloudInstanced

Non-point-type-specific implementation of Potree2 clouds.

Inheritance
System.Object
Potree2CloudInstanced
Implements
IPointCloudImp<InstanceData>
IPointCloudImpBase
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
Assembly: Fusee.PointCloud.Potree.dll
Syntax
public class Potree2CloudInstanced : IPointCloudImp<InstanceData>, IPointCloudImpBase

Constructors

Potree2CloudInstanced(PointCloudDataHandlerBase<InstanceData>, IPointCloudOctree)

Creates a new instance of type Fusee.PointCloud

Declaration
public Potree2CloudInstanced(PointCloudDataHandlerBase<InstanceData> dataHandler, IPointCloudOctree octree)
Parameters
Type Name Description
PointCloudDataHandlerBase<InstanceData> dataHandler
IPointCloudOctree octree

Properties

Center

The center of the point clouds AABB / Octree root.

Declaration
public float3 Center { get; }
Property Value
Type Description
float3

DataHandler

Handles the point and mesh data.

Declaration
public PointCloudDataHandlerBase<InstanceData> DataHandler { get; }
Property Value
Type Description
PointCloudDataHandlerBase<InstanceData>

GpuDataToRender

The complete list of meshes that can be rendered.

Declaration
public List<InstanceData> GpuDataToRender { get; set; }
Property Value
Type Description
System.Collections.Generic.List<InstanceData>

MinProjSizeModifier

Changes the minimum size of a octant. If an octant is smaller it won't be rendered.

Declaration
public float MinProjSizeModifier { get; set; }
Property Value
Type Description
System.Single

NumberOfVisiblePoints

The number of points that are currently visible.

Declaration
public int NumberOfVisiblePoints { get; }
Property Value
Type Description
System.Int32

PointThreshold

Maximal number of points that are visible in one frame - trade-off between performance and quality.

Declaration
public int PointThreshold { get; set; }
Property Value
Type Description
System.Int32

Size

The size (longest edge) of the point clouds AABB / Octree root.

Declaration
public float3 Size { get; }
Property Value
Type Description
float3

UpdateRate

The amount of milliseconds needed to pass before rendering next frame

Declaration
public float UpdateRate { get; set; }
Property Value
Type Description
System.Single

VisibilityTester

Nows which octants are visible and when to trigger the point loading.

Declaration
public VisibilityTester VisibilityTester { get; }
Property Value
Type Description
VisibilityTester

Methods

Update(Single, Int32, FrustumF, float3, float4x4)

Uses the VisibilityTester and PointCloudDataHandler<TGpuData, TPoint> to update the visible meshes. Called every frame.

Declaration
public void Update(float fov, int viewportHeight, FrustumF renderFrustum, float3 camPos, float4x4 modelMat)
Parameters
Type Name Description
System.Single fov

The camera's field of view.

System.Int32 viewportHeight

The viewport height.

FrustumF renderFrustum

The camera's frustum.

float3 camPos

The camera position in world coordinates.

float4x4 modelMat

The model matrix of the SceneNode the PointCloud(Component) is part of.

Implements

IPointCloudImp<TGpuData>
IPointCloudImpBase
Generated by DocFX
GitHub Repo
Back to top