Skip to content
Snippets Groups Projects
Commit b5be0e4e authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

*** empty log message ***

parent 545f5150
No related branches found
No related tags found
No related merge requests found
// $Id: OCCEdge.cpp,v 1.29 2008-01-14 21:29:13 remacle Exp $ // $Id: OCCEdge.cpp,v 1.30 2008-01-20 14:05:08 geuzaine Exp $
// //
// Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle // Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle
// //
...@@ -77,14 +77,14 @@ SPoint2 OCCEdge::reparamOnFace(GFace *face, double epar,int dir) const ...@@ -77,14 +77,14 @@ SPoint2 OCCEdge::reparamOnFace(GFace *face, double epar,int dir) const
} }
if(c2d.IsNull()){ if(c2d.IsNull()){
Msg(FATAL,"Reparam on face failed : curve %d is not on surface %d",tag(),face->tag()); Msg(FATAL,"Reparam on face failed: curve %d is not on surface %d",
tag(), face->tag());
} }
double u, v; double u, v;
gp_Pnt2d pnt = c2d->Value(epar); gp_Pnt2d pnt = c2d->Value(epar);
pnt.Coord(u, v); pnt.Coord(u, v);
{
// sometimes OCC miserably fails ... // sometimes OCC miserably fails ...
GPoint p1 = point(epar); GPoint p1 = point(epar);
GPoint p2 = face->point(u, v); GPoint p2 = face->point(u, v);
...@@ -102,14 +102,12 @@ SPoint2 OCCEdge::reparamOnFace(GFace *face, double epar,int dir) const ...@@ -102,14 +102,12 @@ SPoint2 OCCEdge::reparamOnFace(GFace *face, double epar,int dir) const
// GPoint ppp = face->closestPoint(SPoint3(p1.x(), p1.y(), p1.z())); // GPoint ppp = face->closestPoint(SPoint3(p1.x(), p1.y(), p1.z()));
// return SPoint2(ppp.u(), ppp.v()); // return SPoint2(ppp.u(), ppp.v());
} }
}
return SPoint2(u, v); return SPoint2(u, v);
} }
// True if the edge is a seam for the given face // True if the edge is a seam for the given face
int OCCEdge::isSeam(GFace *face) const int OCCEdge::isSeam(GFace *face) const
{ {
const TopoDS_Face *s = (TopoDS_Face*) face->getNativePtr(); const TopoDS_Face *s = (TopoDS_Face*) face->getNativePtr();
BRepAdaptor_Surface surface(*s); BRepAdaptor_Surface surface(*s);
// printf("asking if edge %d is a seam of face %d\n",tag(),face->tag()); // printf("asking if edge %d is a seam of face %d\n",tag(),face->tag());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment