Go::ProjectIntersectionCurve Class Reference
['geometry' - a spline library]

This class provides an interface to a curve that can be evaluated. More...

#include <ProjectIntersectionCurve.h>

Inheritance diagram for Go::ProjectIntersectionCurve:

Go::EvalCurve List of all members.

Public Member Functions

 ProjectIntersectionCurve (boost::shared_ptr< SplineCurve > &inters_crv, boost::shared_ptr< SplineCurve > &p_crv, boost::shared_ptr< SplineCurve > &other_p_crv, boost::shared_ptr< ParamSurface > &surf, boost::shared_ptr< ParamSurface > &other_surf, double offset_dist, double other_offset_dist, double epsgeo)
 Constructor.
virtual ~ProjectIntersectionCurve ()
 Destructor.
virtual Point eval (double t) const
 The evaluator part of the class, returns the projected offset point in the first surface.
virtual void eval (double t, int n, Point der[]) const
 The evaluator part of the class, returns the projected offset point in the first surface.
virtual double start () const
 Start parameter of curve.
virtual double end () const
 End parameter of curve.
virtual int dim () const
 Dimension of inters_crv_.
virtual bool approximationOK (double par, Point approxpos, double tol1, double tol2) const
 Whether the evaluated point in par is close enough to approxpos.

Detailed Description

This class provides an interface to a curve that can be evaluated.

This evaluator based class computes the projected point in the first surface of the offset point defined by input.

Definition at line 53 of file ProjectIntersectionCurve.h.


Constructor & Destructor Documentation

Go::ProjectIntersectionCurve::ProjectIntersectionCurve ( boost::shared_ptr< SplineCurve > &  inters_crv,
boost::shared_ptr< SplineCurve > &  p_crv,
boost::shared_ptr< SplineCurve > &  other_p_crv,
boost::shared_ptr< ParamSurface > &  surf,
boost::shared_ptr< ParamSurface > &  other_surf,
double  offset_dist,
double  other_offset_dist,
double  epsgeo 
)

Constructor.

Parameters:
inters_crv the space intersection curve between surf & other_surf.
p_crv the corresponding parameter curve in surf.
other_p_crv the corresponding parameter curve in other_surf.
surf the first input surface.
other_surf the second input surface.
offset_dist the offset distance in surf.
other_offset_dist the offset distance in other_surf.
epsgeo the geometrical tolerance (for closes point evaluations).


Member Function Documentation

virtual Point Go::ProjectIntersectionCurve::eval ( double  t  )  const [virtual]

The evaluator part of the class, returns the projected offset point in the first surface.

Parameters:
t the parameter in which to evaluate.

Implements Go::EvalCurve.

virtual void Go::ProjectIntersectionCurve::eval ( double  t,
int  n,
Point  der[] 
) const [virtual]

The evaluator part of the class, returns the projected offset point in the first surface.

For n == 1 the tangent in the projected offset curve is also computed.

Parameters:
t the parameter in which to evaluate.
n the number of derivatives to compute (at most 1).
der the evaluated point. Size of array is 'n + 1'.

Implements Go::EvalCurve.

virtual double Go::ProjectIntersectionCurve::start (  )  const [virtual]

Start parameter of curve.

Returns:
the start parameter.

Implements Go::EvalCurve.

virtual double Go::ProjectIntersectionCurve::end (  )  const [virtual]

End parameter of curve.

Returns:
the end parameter.

Implements Go::EvalCurve.

virtual int Go::ProjectIntersectionCurve::dim (  )  const [virtual]

Dimension of inters_crv_.

Returns:
the dimension of the evaluator point.

Implements Go::EvalCurve.

virtual bool Go::ProjectIntersectionCurve::approximationOK ( double  par,
Point  approxpos,
double  tol1,
double  tol2 
) const [virtual]

Whether the evaluated point in par is close enough to approxpos.

Parameters:
par the parameter in which to evaluate.
approxpos postition to check for accuracy.
tol1 currently not used.
tol2 currently not used.
Returns:
whether approxpos is within satisfactory accuracy (i.e. epsgeo_).

Implements Go::EvalCurve.


The documentation for this class was generated from the following file:
Generated on Mon Jun 11 14:48:19 2007 for GoTools Core Library by  doxygen 1.5.1