MeshLib JavaScript Docs
Loading...
Searching...
No Matches

Public Member Functions

 PointCloud ()
Box3f computeBoundingBox ()
void invalidateCaches ()
 Invalidates caches (e.g. aabb-tree) after a change in point cloud.
number addPoint (Vector3f point)
 appends a point and returns its VertId

Public Attributes

VertBitSet validPoints
 only points and normals corresponding to set bits here are valid
VertCoords points
 coordinates of points
VertCoords normals
 unit normal directions of points (can be empty if no normals are known)

Constructor & Destructor Documentation

◆ PointCloud()

PointCloud::PointCloud ( )

Member Function Documentation

◆ addPoint()

number PointCloud::addPoint ( Vector3f point)

appends a point and returns its VertId

◆ computeBoundingBox()

Box3f PointCloud::computeBoundingBox ( )

passes through all valid points and finds the minimal bounding box containing all of them; if toWorld transformation is given then returns minimal bounding box in world space

◆ invalidateCaches()

void PointCloud::invalidateCaches ( )

Invalidates caches (e.g. aabb-tree) after a change in point cloud.

Member Data Documentation

◆ normals

VertCoords PointCloud::normals

unit normal directions of points (can be empty if no normals are known)

◆ points

VertCoords PointCloud::points

coordinates of points

◆ validPoints

VertBitSet PointCloud::validPoints

only points and normals corresponding to set bits here are valid


The documentation for this class was generated from the following file: