Skip to content

Commit

Permalink
ENH: Added EvaluatePosition() function. Works only for 3D points.
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Jomier committed Nov 16, 2004
1 parent 81055a0 commit cc69c19
Show file tree
Hide file tree
Showing 2 changed files with 382 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Code/Common/itkTriangleCell.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,13 @@ class ITK_EXPORT TriangleCell: public TCellInterface, private TriangleCellTopolo
virtual bool GetVertex(CellFeatureIdentifier, VertexAutoPointer &);
virtual bool GetEdge(CellFeatureIdentifier, EdgeAutoPointer &);

virtual bool EvaluatePosition(CoordRepType [PointDimension],
PointsContainer* ,
CoordRepType [PointDimension],
CoordRepType [],
double *,
InterpolationWeightType*);

/** Cell visitor interface. */
itkCellVisitMacro(TRIANGLE_CELL);

Expand All @@ -101,6 +108,9 @@ class ITK_EXPORT TriangleCell: public TCellInterface, private TriangleCellTopolo
private:
TriangleCell(const Self&); //purposely not implemented
void operator=(const Self&); //purposely not implemented

double DistanceToLine(PointType x, PointType p1, PointType p2,
double &t, PointType closestPoint);
};


Expand Down
Loading

0 comments on commit cc69c19

Please sign in to comment.