#include <IntersectorAlgPar.h>
Inheritance diagram for Go::IntersectorAlgPar:
Public Member Functions | |
IntersectorAlgPar (boost::shared_ptr< AlgObjectInt > alg_obj, boost::shared_ptr< ParamObjectInt > param_obj, boost::shared_ptr< GeoTol > epsge, Intersector *prev=0, int eliminated_parameter=-1, double eliminated_value=0) | |
Constructor. | |
virtual | ~IntersectorAlgPar () |
Destructor. | |
virtual void | compute (bool compute_at_boundary=true) |
Compute the current intersections (topology). | |
virtual void | getResult (std::vector< boost::shared_ptr< IntersectionPoint > > &int_points, std::vector< boost::shared_ptr< IntersectionCurve > > &int_curves) |
Return intersection points and curves. | |
virtual int | numParams () const |
Return the number of parameter directions for the object. | |
Protected Member Functions | |
virtual int | repairIntersections () |
Protected Attributes | |
boost::shared_ptr< ParamObjectInt > | param_int_ |
boost::shared_ptr< AlgObjectInt > | algobj_int_ |
boost::shared_ptr< IntersectorFuncConst > | int_func_const_ |
The algebraic object is "plugged" into the parametric object, resulting in a scalar function. We then use the IntersectorFuncConst class to find the intersection.
Definition at line 61 of file IntersectorAlgPar.h.
Go::IntersectorAlgPar::IntersectorAlgPar | ( | boost::shared_ptr< AlgObjectInt > | alg_obj, | |
boost::shared_ptr< ParamObjectInt > | param_obj, | |||
boost::shared_ptr< GeoTol > | epsge, | |||
Intersector * | prev = 0 , |
|||
int | eliminated_parameter = -1 , |
|||
double | eliminated_value = 0 | |||
) |
Constructor.
The last two variables are relevant only if the parent has one more parameter than the Intersector to be constructed.
alg_obj | the algebraic object. | |
param_obj | the parametric object. | |
epsge | the associated tolerance. | |
prev | the "parent" Intersector (0 if there is no parent). | |
eliminated_parameter | the index of the parameter that was removed from the parent prev. | |
eliminated_value | the value of the parameter that was removed from the parent prev. |
virtual void Go::IntersectorAlgPar::compute | ( | bool | compute_at_boundary = true |
) | [virtual] |
Compute the current intersections (topology).
compute_at_boundary | flag to indicate that we compute at the boundary |
Reimplemented from Go::Intersector.
virtual void Go::IntersectorAlgPar::getResult | ( | std::vector< boost::shared_ptr< IntersectionPoint > > & | int_points, | |
std::vector< boost::shared_ptr< IntersectionCurve > > & | int_curves | |||
) | [virtual] |
Return intersection points and curves.
int_points | vector of shared pointers to IntersectionPoints | |
int_curves | vector of shared pointers to IntersectionCurves |
Reimplemented from Go::Intersector.
virtual int Go::IntersectorAlgPar::numParams | ( | ) | const [virtual] |
Return the number of parameter directions for the object.
Implements Go::Intersector.