#include <function_signed_distance_function.h>
Public Types | |
typedef math_types::real_type | real_type |
typedef math_types::vector3_type | vector3_type |
Public Member Functions | |
virtual | ~SignedDistanceFunction () |
virtual vector3_type | normal (vector3_type const &x) const =0 |
virtual real_type | signed_distance (vector3_type const &x) const =0 |
Signed Distance Function interface
typedef math_types::real_type OpenTissue::function::SignedDistanceFunction< math_types >::real_type |
Reimplemented from OpenTissue::function::ImplicitFunction< math_types >.
typedef math_types::vector3_type OpenTissue::function::SignedDistanceFunction< math_types >::vector3_type |
Reimplemented from OpenTissue::function::ImplicitFunction< math_types >.
virtual OpenTissue::function::SignedDistanceFunction< math_types >::~SignedDistanceFunction | ( | ) | [inline, virtual] |
virtual vector3_type OpenTissue::function::SignedDistanceFunction< math_types >::normal | ( | vector3_type const & | x | ) | const [pure virtual] |
The unit normal of the implicit function evaluated in x.
virtual real_type OpenTissue::function::SignedDistanceFunction< math_types >::signed_distance | ( | vector3_type const & | x | ) | const [pure virtual] |
The signed distance from x to the surface, e.g. -normal*signed_distance is the shortest direction to the surface from any x.