SurfaceToImplicit2.h
Go to the documentation of this file.
70 class SurfaceToImplicit2::Builder final : public SurfaceBuilderBase2<SurfaceToImplicit2::Builder>
Builder & WithSurface(const Surface2Ptr &surface)
Returns builder with surface.
Vector2D ClosestPointLocal(const Vector2D &otherPoint) const override
2-D implicit surface wrapper for generic Surface2 instance.
Definition: SurfaceToImplicit2.h:25
double ClosestDistanceLocal(const Vector2D &otherPoint) const override
Vector2D ClosestNormalLocal(const Vector2D &otherPoint) const override
SurfaceToImplicit2 Build() const
Builds SurfaceToImplicit2.
double SignedDistanceLocal(const Vector2D &otherPoint) const override
Returns signed distance from the given point otherPoint in local space.
Transform2 transform
Local-to-world transform.
Definition: Surface2.h:36
Structure that represents ray-surface intersection point.
Definition: Surface2.h:23
SurfaceRayIntersection2 ClosestIntersectionLocal(const Ray2D &ray) const override
Returns the closest intersection point for given ray in local frame.
Definition: pybind11Utils.h:24
static Builder GetBuilder()
Returns builder for SurfaceToImplicit2.
SurfaceToImplicit2Ptr MakeShared() const
Builds shared pointer of SurfaceToImplicit2 instance.
bool IntersectsLocal(const Ray2D &ray) const override
Abstract base class for 2-D implicit surface.
Definition: ImplicitSurface2.h:17
Surface2Ptr GetSurface() const
Returns the raw surface instance.
Front-end to create SurfaceToImplicit2 objects step by step.
Definition: SurfaceToImplicit2.h:70
SurfaceToImplicit2(const Surface2Ptr &surface, const Transform2 &transform=Transform2(), bool isNormalFlipped=false)
Constructs an instance with generic Surface2 instance.
std::shared_ptr< SurfaceToImplicit2 > SurfaceToImplicit2Ptr
Shared pointer for the SurfaceToImplicit2 type.
Definition: SurfaceToImplicit2.h:65
std::shared_ptr< Surface2 > Surface2Ptr
Shared pointer for the Surface2 type.
Definition: Surface2.h:100
BoundingBox2D BoundingBoxLocal() const override
Returns the bounding box of this surface object in local frame.