Jet
v1.3.3
|
3-D implicit surface set. More...
#include <jet/implicit_surface_set3.h>
Classes | |
class | Builder |
Front-end to create ImplicitSurfaceSet3 objects step by step. More... | |
Public Member Functions | |
ImplicitSurfaceSet3 () | |
Constructs an empty implicit surface set. More... | |
ImplicitSurfaceSet3 (const std::vector< ImplicitSurface3Ptr > &surfaces, const Transform3 &transform=Transform3(), bool isNormalFlipped=false) | |
Constructs an implicit surface set using list of other surfaces. More... | |
ImplicitSurfaceSet3 (const std::vector< Surface3Ptr > &surfaces, const Transform3 &transform=Transform3(), bool isNormalFlipped=false) | |
Constructs an implicit surface set using list of other surfaces. More... | |
ImplicitSurfaceSet3 (const ImplicitSurfaceSet3 &other) | |
Copy constructor. More... | |
void | updateQueryEngine () override |
Updates internal spatial query engine. More... | |
bool | isBounded () const override |
Returns true if bounding box can be defined. More... | |
bool | isValidGeometry () const override |
Returns true if the surface is a valid geometry. More... | |
size_t | numberOfSurfaces () const |
Returns the number of implicit surfaces. More... | |
const ImplicitSurface3Ptr & | surfaceAt (size_t i) const |
Returns the i-th implicit surface. More... | |
void | addExplicitSurface (const Surface3Ptr &surface) |
Adds an explicit surface instance. More... | |
void | addSurface (const ImplicitSurface3Ptr &surface) |
Adds an implicit surface instance. More... | |
![]() | |
ImplicitSurface3 (const Transform3 &transform=Transform3(), bool isNormalFlipped=false) | |
Default constructor. More... | |
ImplicitSurface3 (const ImplicitSurface3 &other) | |
Copy constructor. More... | |
virtual | ~ImplicitSurface3 () |
Default destructor. More... | |
double | signedDistance (const Vector3D &otherPoint) const |
Returns signed distance from the given point otherPoint . More... | |
![]() | |
Surface3 (const Transform3 &transform=Transform3(), bool isNormalFlipped=false) | |
Constructs a surface with normal direction. More... | |
Surface3 (const Surface3 &other) | |
Copy constructor. More... | |
virtual | ~Surface3 () |
Default destructor. More... | |
Vector3D | closestPoint (const Vector3D &otherPoint) const |
BoundingBox3D | boundingBox () const |
Returns the bounding box of this surface object. More... | |
bool | intersects (const Ray3D &ray) const |
Returns true if the given ray intersects with this surface object. More... | |
double | closestDistance (const Vector3D &otherPoint) const |
SurfaceRayIntersection3 | closestIntersection (const Ray3D &ray) const |
Returns the closest intersection point for given ray . More... | |
Vector3D | closestNormal (const Vector3D &otherPoint) const |
bool | isInside (const Vector3D &otherPoint) const |
Static Public Member Functions | |
static Builder | builder () |
Returns builder fox ImplicitSurfaceSet3. More... | |
Additional Inherited Members | |
![]() | |
Transform3 | transform |
Local-to-world transform. More... | |
bool | isNormalFlipped = false |
Flips normal when calling Surface3::closestNormal(...). More... | |
3-D implicit surface set.
This class represents 3-D implicit surface set which extends ImplicitSurface3 by overriding implicit surface-related quries. This is class can hold a collection of other implicit surface instances.
jet::ImplicitSurfaceSet3::ImplicitSurfaceSet3 | ( | ) |
Constructs an empty implicit surface set.
jet::ImplicitSurfaceSet3::ImplicitSurfaceSet3 | ( | const std::vector< ImplicitSurface3Ptr > & | surfaces, |
const Transform3 & | transform = Transform3() , |
||
bool | isNormalFlipped = false |
||
) |
Constructs an implicit surface set using list of other surfaces.
jet::ImplicitSurfaceSet3::ImplicitSurfaceSet3 | ( | const std::vector< Surface3Ptr > & | surfaces, |
const Transform3 & | transform = Transform3() , |
||
bool | isNormalFlipped = false |
||
) |
Constructs an implicit surface set using list of other surfaces.
jet::ImplicitSurfaceSet3::ImplicitSurfaceSet3 | ( | const ImplicitSurfaceSet3 & | other | ) |
Copy constructor.
void jet::ImplicitSurfaceSet3::addExplicitSurface | ( | const Surface3Ptr & | surface | ) |
Adds an explicit surface instance.
void jet::ImplicitSurfaceSet3::addSurface | ( | const ImplicitSurface3Ptr & | surface | ) |
Adds an implicit surface instance.
|
static |
Returns builder fox ImplicitSurfaceSet3.
|
overridevirtual |
Returns true if bounding box can be defined.
Reimplemented from jet::Surface3.
|
overridevirtual |
Returns true if the surface is a valid geometry.
Reimplemented from jet::Surface3.
size_t jet::ImplicitSurfaceSet3::numberOfSurfaces | ( | ) | const |
Returns the number of implicit surfaces.
const ImplicitSurface3Ptr& jet::ImplicitSurfaceSet3::surfaceAt | ( | size_t | i | ) | const |
Returns the i-th implicit surface.
|
overridevirtual |
Updates internal spatial query engine.
Reimplemented from jet::Surface3.