Point Cloud Functions

This group of functions works with clouds of points – imported, or made from a MeshGeom such as the one a planar slice produces – and narrows them down to the points wanted. In the GUI a cloud is whittled down by selecting and hiding points with the mouse, which projects a screen rectangle into three dimensions and is only as good as that projection. Through the API the points are handed about as plain vectors of coordinates and filtered by where they actually are, which is both exact and repeatable. Filters come in keep and remove pairs, so a selection is inverted by asking for the other one, and there are set operations for combining the results.

CreatePtCloudGeomFromPts(Vec3dVec pt_vec, std)

KeepPtsInBBox(Vec3dVec pt_vec, vec3d min_pt, ...)

RemovePtsInBBox(Vec3dVec pt_vec, ...)

KeepPtsInRange(Vec3dVec pt_vec, ...)

RemovePtsInRange(Vec3dVec pt_vec, ...)

KeepPtsAbove(Vec3dVec pt_vec, int dir_index, ...)

KeepPtsBelow(Vec3dVec pt_vec, int dir_index, ...)

KeepPtsNearPt(Vec3dVec pt_vec, vec3d center, ...)

RemovePtsNearPt(Vec3dVec pt_vec, ...)

KeepPtsNearGeom(Vec3dVec pt_vec, std, ...)

RemovePtsNearGeom(Vec3dVec pt_vec, std, ...)

UniquePts(Vec3dVec pt_vec, double tol)

UnionPts(Vec3dVec pt_vec_a, ...)

IntersectPts(Vec3dVec pt_vec_a, ...)

SubtractPts(Vec3dVec pt_vec_a, ...)

CreatePtCloudGeom(std)

Details

openvsp.CreatePtCloudGeomFromPts(Vec3dVec pt_vec, std: :string const & name) std::string[source]
openvsp.KeepPtsInBBox(Vec3dVec pt_vec, vec3d min_pt, vec3d max_pt) Vec3dVec[source]
openvsp.RemovePtsInBBox(Vec3dVec pt_vec, vec3d min_pt, vec3d max_pt) Vec3dVec[source]
openvsp.KeepPtsInRange(Vec3dVec pt_vec, int dir_index, double low, double high) Vec3dVec[source]
openvsp.RemovePtsInRange(Vec3dVec pt_vec, int dir_index, double low, double high) Vec3dVec[source]
openvsp.KeepPtsAbove(Vec3dVec pt_vec, int dir_index, double val) Vec3dVec[source]
openvsp.KeepPtsBelow(Vec3dVec pt_vec, int dir_index, double val) Vec3dVec[source]
openvsp.KeepPtsNearPt(Vec3dVec pt_vec, vec3d center, double radius) Vec3dVec[source]
openvsp.RemovePtsNearPt(Vec3dVec pt_vec, vec3d center, double radius) Vec3dVec[source]
openvsp.KeepPtsNearGeom(Vec3dVec pt_vec, std: :string const & geom_id, int surf_indx, double tol) Vec3dVec[source]
openvsp.RemovePtsNearGeom(Vec3dVec pt_vec, std: :string const & geom_id, int surf_indx, double tol) Vec3dVec[source]
openvsp.UniquePts(Vec3dVec pt_vec, double tol) Vec3dVec[source]
openvsp.UnionPts(Vec3dVec pt_vec_a, Vec3dVec pt_vec_b, double tol) Vec3dVec[source]
openvsp.IntersectPts(Vec3dVec pt_vec_a, Vec3dVec pt_vec_b, double tol) Vec3dVec[source]
openvsp.SubtractPts(Vec3dVec pt_vec_a, Vec3dVec pt_vec_b, double tol) Vec3dVec[source]
openvsp.CreatePtCloudGeom(std: :string const & geom_id) std::string[source]