Signed distance field for a tube (a pipe): the space between two coaxial cylinders, cut flat at two end centers.
More...
|
|
| TubeSDF ()=default |
| | Default constructor. Constructs a tube from (0,-0.5,0) to (0,0.5,0), with inner radius 0.5 and outer radius 1.
|
| |
| | TubeSDF (const Vec3T< T > &a_center1, const Vec3T< T > &a_center2, const T a_innerRadius, const T a_outerRadius) |
| | Full constructor.
|
| |
|
| TubeSDF (const TubeSDF &)=default |
| | Copy constructor.
|
| |
|
| TubeSDF (TubeSDF &&)=default |
| | Move constructor.
|
| |
| TubeSDF & | operator= (const TubeSDF &)=default |
| | Copy assignment.
|
| |
| TubeSDF & | operator= (TubeSDF &&)=default |
| | Move assignment.
|
| |
| const Vec3T< T > & | getCenter1 () const noexcept |
| | Get the center of one end.
|
| |
| const Vec3T< T > & | getCenter2 () const noexcept |
| | Get the center of the other end.
|
| |
| const T & | getInnerRadius () const noexcept |
| | Get the inner radius.
|
| |
| const T & | getOuterRadius () const noexcept |
| | Get the outer radius.
|
| |
| T | signedDistance (const Vec3T< T > &a_point) const noexcept |
| | Signed distance function for the tube.
|
| |
| uint32_t | getNumParts () const noexcept |
| | How many parts the shape has (see hasParts): 4.
|
| |
| uint32_t | closestPart (const Vec3T< T > &a_point) const noexcept |
| | The part whose term decides the value at a point (see hasParts): 0 the outer wall, 1 the inner wall, 2 the end at the first center, 3 the end at the second.
|
| |
| BoundingVolumes::AABBT< T > | computeBoundingVolume () const noexcept |
| | The shape's axis-aligned bounding box: the box of the outer cylinder.
|
| |
template<class T>
class EBGeometry::TubeSDF< T >
Signed distance field for a tube (a pipe): the space between two coaxial cylinders, cut flat at two end centers.
The distance is exact: an annulus in the cross-section, extruded between the end planes. An inner radius of 0 would be a cylinder (CylinderSDF). Round its edges with Offset of a slightly smaller tube. By default the tube runs from (0,-0.5,0) to (0,0.5,0), with inner radius 0.5 and outer radius 1.
- Template Parameters
-
| T | Floating-point precision. |