BRL-CAD
Loading...
Searching...
No Matches
PullbackContext Class Reference

#include <pullback.h>

Public Member Functions

 PullbackContext ()
 
 ~PullbackContext ()
 
 PullbackContext (const PullbackContext &)=delete
 
PullbackContextoperator= (const PullbackContext &)=delete
 
bool SurfaceClosestPoint (const ON_Surface *surf, const ON_3dPoint &point, ON_2dPoint &surface_point, ON_3dPoint &lifted_point, double &distance, int quadrant=0, double same_point_tol=BREP_SAME_POINT_TOLERANCE, double within_distance_tol=BREP_EDGE_MISS_TOLERANCE)
 
bool SurfaceClosestPointFromSeed (const ON_Surface *surf, const ON_3dPoint &point, const ON_2dPoint &seed, ON_2dPoint &surface_point, ON_3dPoint &lifted_point, double &distance, double tolerance, const bool *cached_closed=NULL, const ON_Interval *cached_domains=NULL, double refinement_tolerance=0.0)
 
PullbackStatistics Statistics () const
 
std::shared_ptr< PullbackContextForkWithSharedSurfaceCache () const
 

Detailed Description

Mutable state used by one pullback job. Solver state and statistics are private; immutable span/bounding-box preparation may be shared explicitly by related jobs and remains bounded by their context lifetimes.

Definition at line 233 of file pullback.h.

Constructor & Destructor Documentation

◆ PullbackContext() [1/2]

◆ ~PullbackContext()

◆ PullbackContext() [2/2]

Member Function Documentation

◆ operator=()

◆ SurfaceClosestPoint()

bool SurfaceClosestPoint ( const ON_Surface surf,
const ON_3dPoint point,
ON_2dPoint surface_point,
ON_3dPoint lifted_point,
double distance,
int  quadrant = 0,
double  same_point_tol = BREP_SAME_POINT_TOLERANCE,
double  within_distance_tol = BREP_EDGE_MISS_TOLERANCE 
)

◆ SurfaceClosestPointFromSeed()

bool SurfaceClosestPointFromSeed ( const ON_Surface surf,
const ON_3dPoint point,
const ON_2dPoint seed,
ON_2dPoint surface_point,
ON_3dPoint lifted_point,
double distance,
double  tolerance,
const bool cached_closed = NULL,
const ON_Interval cached_domains = NULL,
double  refinement_tolerance = 0.0 
)

Refine a closest point from a known adjacent UV. This is the continuity fast path used between successive samples of one edge; the caller remains responsible for applying its lift tolerance.

◆ Statistics()

PullbackStatistics Statistics ( ) const

◆ ForkWithSharedSurfaceCache()

std::shared_ptr< PullbackContext > ForkWithSharedSurfaceCache ( ) const

Create an independent pullback job which shares only this context's lazily constructed, immutable surface-search cache. Closest-point state and statistics remain private to the returned context, so the jobs may run concurrently on the same read-only surface.


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