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