This tool is intended to get points from shape with specified distance from shape along normal. Can be used to simulation of points obtained in result of laser scan of shape. There are 2 ways for generation points by shape:
More...
#include <BRepLib_PointCloudShape.hxx>
This tool is intended to get points from shape with specified distance from shape along normal. Can be used to simulation of points obtained in result of laser scan of shape. There are 2 ways for generation points by shape:
- Generation points with specified density
- Generation points using triangulation Nodes Generation of points by density using the GeneratePointsByDensity() function is not thread safe.
◆ BRepLib_PointCloudShape()
Constructor initialized by shape.
◆ ~BRepLib_PointCloudShape()
virtual BRepLib_PointCloudShape::~BRepLib_PointCloudShape |
( |
| ) |
|
|
virtual |
◆ addDensityPoints()
Adds points to face in accordance with the specified density randomly in the specified range [0, Dist].
◆ addPoint()
Method to add point, normal to surface in this point and face for which point computed.
- Parameters
-
[in] | thePoint | 3D point on the surface |
[in] | theNorm | surface normal at this point |
[in] | theUV | surface UV parameters |
[in] | theFace | surface (face) definition |
◆ addTriangulationPoints()
Adds points to face by nodes of the existing triangulation randomly in the specified range [0, Dist].
◆ clear()
virtual void BRepLib_PointCloudShape::clear |
( |
| ) |
|
|
protectedvirtual |
◆ computeDensity()
Computes default density points per face.
◆ faceArea()
Compute area of the specified face.
◆ GeneratePointsByDensity()
Computes points with specified density for initial shape. If parameter Density is equal to 0 then density will be computed automatically by criterion:
- 10 points per minimal unreduced face area.
Note: this function should not be called from concurrent threads without external lock.
◆ GeneratePointsByTriangulation()
Get points from triangulation existing in the shape.
◆ GetDistance()
Returns value of the distance to define deflection of points from shape along normal to shape; 0.0 by default.
◆ NbPointsByDensity()
Returns size of the point cloud for specified density.
◆ NbPointsByTriangulation()
Returns size of the point cloud for using triangulation.
◆ SetDistance()
void BRepLib_PointCloudShape::SetDistance |
( |
const Standard_Real |
theDist | ) |
|
|
inline |
Sets value of the distance to define deflection of points from shape along normal to shape. Negative values of theDist parameter are ignored.
◆ SetShape()
void BRepLib_PointCloudShape::SetShape |
( |
const TopoDS_Shape & |
theShape | ) |
|
|
inline |
◆ SetTolerance()
void BRepLib_PointCloudShape::SetTolerance |
( |
Standard_Real |
theTol | ) |
|
|
inline |
◆ Shape()
const TopoDS_Shape& BRepLib_PointCloudShape::Shape |
( |
| ) |
const |
|
inline |
◆ Tolerance()
◆ myDist
◆ myFaceArea
◆ myFacePoints
◆ myNbPoints
◆ myShape
◆ myTol
The documentation for this class was generated from the following file: