EBGeometry
Compact, header-only C++ library for fast evaluation of signed distance functions
Loading...
Searching...
No Matches
Classes | Namespaces
EBGeometry_AnalyticRayForms.hpp File Reference

Ray forms (see RayForm) for the analytic shapes that have a closed-form crossing: PlaneSDF, SphereSDF, BoxSDF, CylinderSDF, InfiniteCylinderSDF, CapsuleSDF, EllipsoidSDF, CappedConeSDF, PolygonPrismSDF, TubeSDF, CutSphereSDF and WedgeSDF. With this header included, firstHit() and intersects() on these shapes are exact instead of marched, and so are compositions of them (see EBGeometry_CSGRayForms.hpp). Each is convex, so the ray is inside it over one span, which spans() gives, except the tube, whose hollow can split it in two. More...

#include "EBGeometry_AnalyticDistanceFunctions.hpp"
#include "EBGeometry_Ray.hpp"
#include "EBGeometry_AnalyticRayFormsImplem.hpp"
Include dependency graph for EBGeometry_AnalyticRayForms.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  EBGeometry::RayForm< PlaneSDF< T > >
 PlaneSDF's ray form: the crossing of the plane, where the ray goes from one side to the other. Exact, and callable on a device. More...
 
struct  EBGeometry::RayForm< SphereSDF< T > >
 SphereSDF's ray form: the roots of a quadratic. Exact, and callable on a device. More...
 
struct  EBGeometry::RayForm< BoxSDF< T > >
 BoxSDF's ray form: the slab test, axis by axis. Exact, and callable on a device. More...
 
struct  EBGeometry::RayForm< CylinderSDF< T > >
 CylinderSDF's ray form: the infinite cylinder around its axis, clipped by the slab between its caps. Exact, and callable on a device. More...
 
struct  EBGeometry::RayForm< InfiniteCylinderSDF< T > >
 InfiniteCylinderSDF's ray form: the roots of a quadratic, in the plane across its axis. Exact, and callable on a device. More...
 
struct  EBGeometry::RayForm< CapsuleSDF< T > >
 CapsuleSDF's ray form: the span of the cylinder between its centers and of the two balls at its ends, which, the capsule being convex, is one interval. Exact, and callable on a device. More...
 
struct  EBGeometry::RayForm< EllipsoidSDF< T > >
 EllipsoidSDF's ray form: the roots of a quadratic, in coordinates where the ellipsoid is the unit sphere. Exact, and callable on a device. More...
 
struct  EBGeometry::RayForm< CappedConeSDF< T > >
 CappedConeSDF's ray form: the roots of the cone's quadratic, clipped by the slab between its ends. Exact, and callable on a device. More...
 
struct  EBGeometry::RayForm< PolygonPrismSDF< T > >
 PolygonPrismSDF's ray form: the half-spaces of its sides, clipped by the slab between its ends. Exact, and callable on a device. More...
 
struct  EBGeometry::RayForm< TubeSDF< T > >
 TubeSDF's ray form: the outer cylinder's span less the inner cylinder's, which leaves up to two spans. Exact, and callable on a device. More...
 
struct  EBGeometry::RayForm< CutSphereSDF< T > >
 CutSphereSDF's ray form: the sphere's span clipped by the half-space above the cut. Exact, and callable on a device. More...
 
struct  EBGeometry::RayForm< WedgeSDF< T > >
 WedgeSDF's ray form: the intersection of the half-spaces behind its two faces. Exact, and callable on a device. More...
 

Namespaces

namespace  EBGeometry
 Namespace containing all of EBGeometry's functionality.
 

Detailed Description

Ray forms (see RayForm) for the analytic shapes that have a closed-form crossing: PlaneSDF, SphereSDF, BoxSDF, CylinderSDF, InfiniteCylinderSDF, CapsuleSDF, EllipsoidSDF, CappedConeSDF, PolygonPrismSDF, TubeSDF, CutSphereSDF and WedgeSDF. With this header included, firstHit() and intersects() on these shapes are exact instead of marched, and so are compositions of them (see EBGeometry_CSGRayForms.hpp). Each is convex, so the ray is inside it over one span, which spans() gives, except the tube, whose hollow can split it in two.

Author
Robert Marskar