Class BoundingBoxMaskProjector
java.lang.Object
cz.fidentis.analyst.engines.interactivemask.BoundingBoxMaskProjector
- All Implemented Interfaces:
OctreeVisitor
Visits octree mesh and returns SurfaceMask
projected onto the mesh.
Points to project are described as a normalized 2D points with coordinates relative to mesh
bounding box in x and y axes (i.e. in range invalid input: '<'0, 1>).
Using ray casting, intersection of 3D point on mesh is constructed from 2D point and orthogonal ray cast towards the mesh.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final float
Distance of the origin of orthogonal rays -
Constructor Summary
ConstructorsConstructorDescriptionBoundingBoxMaskProjector
(BoundingBoxMaskProjectorConfig config, List<javax.vecmath.Point2d> points) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionGets the resulting projected mask.void
visitOctree
(Octree octree) The main inspection method to be implemented by specific visitors.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface cz.fidentis.analyst.data.octree.OctreeVisitor
isThreadSafe
-
Field Details
-
PROJECTION_DISTANCE
public static final float PROJECTION_DISTANCEDistance of the origin of orthogonal rays- See Also:
-
-
Constructor Details
-
BoundingBoxMaskProjector
public BoundingBoxMaskProjector(BoundingBoxMaskProjectorConfig config, List<javax.vecmath.Point2d> points) Constructor.- Parameters:
config
- configuration for the visitorpoints
- points to project
-
-
Method Details
-
getResult
Gets the resulting projected mask.- Returns:
- projected mask
-
visitOctree
Description copied from interface:OctreeVisitor
The main inspection method to be implemented by specific visitors.- Specified by:
visitOctree
in interfaceOctreeVisitor
- Parameters:
octree
- octree to be visited
-