CustomImplicitSurface3.h
Go to the documentation of this file.
78 class CustomImplicitSurface3::Builder final : public SurfaceBuilderBase3<CustomImplicitSurface3::Builder>
Builder & WithDomain(const BoundingBox3D &domain)
Returns builder with domain.
std::shared_ptr< CustomImplicitSurface3 > CustomImplicitSurface3Ptr
Shared pointer type for the CustomImplicitSurface3.
Definition: CustomImplicitSurface3.h:73
virtual ~CustomImplicitSurface3()
Destructor.
Custom 3-D implicit surface using arbitrary function.
Definition: CustomImplicitSurface3.h:19
CustomImplicitSurface3 Build() const
Builds CustomImplicitSurface3.
Builder & WithRayMarchingResolution(double rayMarchingResolution)
Structure that represents ray-surface intersection point.
Definition: Surface3.h:23
BoundingBox3< double > BoundingBox3D
Double-type 3-D BoundingBox.
Definition: BoundingBox3.h:129
CustomImplicitSurface3(const std::function< double(const Vector3D &)> &func, const BoundingBox3D &domain=BoundingBox3D(), double resolution=1e-3, double rayMarchingResolution=1e-6, unsigned int maxNumberOfIterations=5, const Transform3 &transform=Transform3(), bool isNormalFlipped=false)
Builder & WithSignedDistanceFunction(const std::function< double(const Vector3D &)> &func)
Returns builder with custom signed-distance function.
Definition: pybind11Utils.h:24
Transform3 transform
Local-to-world transform.
Definition: Surface3.h:36
Builder & WithResolution(double resolution)
Returns builder with finite differencing resolution.
Builder & WithMaxNumberOfIterations(unsigned int numIter)
Returns builder with number of iterations for closest point/normal searches.
static Builder GetBuilder()
Returns builder for CustomImplicitSurface3.
bool isNormalFlipped
Flips normal when calling Surface3::closestNormal(...).
Definition: Surface3.h:39
Abstract base class for 3-D implicit surface.
Definition: ImplicitSurface3.h:17
CustomImplicitSurface3Ptr MakeShared() const
Builds shared pointer of CustomImplicitSurface3 instance.
Front-end to create CustomImplicitSurface3 objects step by step.
Definition: CustomImplicitSurface3.h:78