Block-Structured AMR Software Framework
Loading...
Searching...
No Matches
amrex::EB2::SplineIF Class Reference

Implicit function that measures distance to a poly-spline curve in 2-D. More...

#include <AMReX_EB2_IF_Spline.H>

Public Member Functions

void addSplineElement (std::vector< amrex::RealVect > pts)
 Append a spline segment described by control points pts.
 
void addLineElement (std::vector< amrex::RealVect > pts)
 Append a straight line segment with endpoints/control points pts.
 
amrex::Real operator() (const amrex::RealArray &p) const
 Signed distance to the closest spline/line element through p.
 

Public Attributes

amrex::Vector< distFcnElement2d * > geomElements
 Collection of geometry elements that define the curve.
 

Detailed Description

Implicit function that measures distance to a poly-spline curve in 2-D.

Member Function Documentation

◆ addLineElement()

void amrex::EB2::SplineIF::addLineElement ( std::vector< amrex::RealVect pts)
inline

Append a straight line segment with endpoints/control points pts.

◆ addSplineElement()

void amrex::EB2::SplineIF::addSplineElement ( std::vector< amrex::RealVect pts)
inline

Append a spline segment described by control points pts.

Ownership stays with the SplineIF; callers must allocate on host.

◆ operator()()

amrex::Real amrex::EB2::SplineIF::operator() ( const amrex::RealArray p) const
inline

Signed distance to the closest spline/line element through p.

Uses cpside to determine which side of the spline is considered inside.

Member Data Documentation

◆ geomElements

amrex::Vector<distFcnElement2d*> amrex::EB2::SplineIF::geomElements

Collection of geometry elements that define the curve.


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