EBGeometry
Compact, header-only C++ library for fast evaluation of signed distance functions
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
EBGeometry::RayDetail::LevelView< S > Struct Template Reference

A level set of a shape, {f <= c}, or an annulus of it, {f <= c} less {f < -c}: a shape whose ray form traces it from the shape's closed-form level sets. More...

#include <EBGeometry_OffsetRayForms.hpp>

Public Types

using T = ShapePrecision< S >
 Floating-point precision.
 

Public Member Functions

T signedDistance (const Vec3T< T > &a_point) const noexcept
 The value: f - c, or |f| - c.
 
BoundingVolumes::AABBT< T > computeBoundingVolume () const noexcept
 The shape's box, grown by the level.
 

Public Attributes

S m_shape
 The shape.
 
T m_level
 The level c: the offset, or the annulus's half-thickness.
 
bool m_annulus
 Whether this is an annulus.
 

Static Public Attributes

static constexpr DistanceQuality distanceQuality = distanceQualityOf<S>
 The quality of its value: the operand's.
 

Detailed Description

template<class S>
struct EBGeometry::RayDetail::LevelView< S >

A level set of a shape, {f <= c}, or an annulus of it, {f <= c} less {f < -c}: a shape whose ray form traces it from the shape's closed-form level sets.

Internal helper; not part of the public API. What a fused Offset or Annular, and a tape's Leaf clause of one, trace. Its value is the operand's shifted (or folded, for an annulus) as the operation's.

Template Parameters
SShape type, with a LevelForm.

Member Function Documentation

◆ computeBoundingVolume()

template<class S >
BoundingVolumes::AABBT< T > EBGeometry::RayDetail::LevelView< S >::computeBoundingVolume ( ) const
inlinenoexcept

The shape's box, grown by the level.

Returns
The box.

◆ signedDistance()

template<class S >
T EBGeometry::RayDetail::LevelView< S >::signedDistance ( const Vec3T< T > &  a_point) const
inlinenoexcept

The value: f - c, or |f| - c.

Parameters
[in]a_pointThe point.
Returns
The value.

The documentation for this struct was generated from the following file: