curpos.Translate(offset);
Position = curpos;
}
- else {
- const gp_Dir& aDir = Plane->Pln().Axis().Direction();
+ else {
+ gp_Dir aDir = Plane->Pln().Axis().Direction();
gp_Vec aVec (aDir.XYZ()*10*ArrowSize);
//Position = gp_Pnt(FirstAttach.XYZ()+gp_XYZ(1.,1.,1.)); // not correct
Position = FirstAttach.Translated(aVec);
Standard_Real GetAddToParam(const gp_Lin& L,const Standard_Real P,const Bnd_Box& B);
//gets transition of line <L> passing through/near the edge <e> of faces <f1>, <f2>. <param> is
-// a parameter on the edge where the minimum distance between <l> and <e> was found
-static Standard_Integer GetTransi(const TopoDS_Face& f1, const TopoDS_Face& f2, const TopoDS_Edge e,
- Standard_Real param, const Geom_Line& L, IntCurveSurface_TransitionOnCurve& trans);
+// a parameter on the edge where the minimum distance between <l> and <e> was found
+static Standard_Integer GetTransi(const TopoDS_Face& f1, const TopoDS_Face& f2, const TopoDS_Edge e,
+ Standard_Real param, const gp_Lin& L, IntCurveSurface_TransitionOnCurve& trans);
static Standard_Boolean GetNormalOnFaceBound(const TopoDS_Edge& E, const TopoDS_Face& F, Standard_Real param, gp_Dir& OutDir);
const TopoDS_Face& f2,
const TopoDS_Edge e,
const Standard_Real param,
- const Geom_Line& L,
+ const gp_Lin& L,
IntCurveSurface_TransitionOnCurve& trans)
{
//return statuses:
if (!GetNormalOnFaceBound(e, f2, param, nf2))
return -1;
- const gp_Dir& LDir = L.Lin().Direction();
+ const gp_Dir& LDir = L.Direction();
if(Abs(LDir.Dot(nf1)) < Precision::Angular() || Abs(LDir.Dot(nf2)) < Precision::Angular())
{
state = 3; // IN
else
state = 4; // OUT
-}
\ No newline at end of file
+}
// today we process only planar faces
if (surf1.GetType() != GeomAbs_Plane)
return;
-
- const gp_Ax1& anAx1 = surf1.Plane().Axis();
+
+ gp_Ax1 anAx1 = surf1.Plane().Axis();
gp_Vec V = anAx1.Direction();
// output
Standard_Boolean nullx = (Abs(p2d.X()) < toluv);
Standard_Boolean apex = nullx && (Abs(p2d.Y()) < toluv);
if (apex) {
- const gp_Dir& axis = GS.Cone().Axis().Direction();
- gp_Vec ng(axis); ng.Reverse();
- return ng;
+ gp_Dir axis = GS.Cone().Axis().Direction();
+ gp_Vec ng(axis);
+ ng.Reverse();
+ return ng;
}
else if (du < tol) {
Standard_Real vf = GS.FirstVParameter();
Standard_Boolean nullx = (Abs(uv.X()) < tolu);
Standard_Boolean apex = nullx && (Abs(uv.Y()) < tolv);
if (apex) {
- const gp_Dir& axis = bs.Cone().Axis().Direction();
- gp_Vec ng(axis); ng.Reverse();
- ngF = ng; return Standard_True;
+ const gp_Dir axis = bs.Cone().Axis().Direction();
+ gp_Vec ng(axis);
+ ng.Reverse();
+ ngF = ng;
+ return Standard_True;
}
else if (du < tolu) {
Standard_Real x = uv.X();