Open CASCADE, the 3D modelling kernel
3D modeling & numerical simulation

Search the Forums
See All Topics
 

Incomplete Initializer with gp_Pln

Incomplete Initializer with gp_Pln
Game Milky 2013/02/28 19:31
I come across an error in using gp_Pln, here block block of coding!

Any help please!

bool OCCT_FLITE::isKnuckleEdge(const TopoDS_Edge& edge)
{

TopoDS_Shape result;
TopoDS_Face FaceA; //face explored from shape
Handle(Geom_Curve) curve = BRep_Tool::Curve(edge, first, last);
          GeomAdaptor_Curve adaptorCurve(curve);
          GCPnts_UniformAbscissa algo(adaptorCurve, 5, first, last);
          
      //Loop over the two center points of comparison
          for(i = 2; i <= algo.NbPoints() - 1; i = i + 2)
          {
               
      //level define

               double param = algo.Parameter(i);
               gp_Pnt point;
               gp_Vec tangent;
               curve->D1(param, point, tangent);
               gp_Dir normal(tangent);
               gp_Pln Sectionplane(point, normal); //Section plane

               
               BRepAlgoAPI_Section cutAlgo(faceA, Sectionplane, Standard_False);
               cutAlgo.ComputePCurveOn1(Standard_True);
               cutAlgo.Approximation(Standard_True);
               cutAlgo.Build();
               result = cutAlgo.Shape();

}

Error message....
error: variable ‘gp_Pln Sectionplane’ has initializer but incomplete type

Any help with this problem
Regards

Game
 
 
Latest news
  • Open CASCADE Technology 6.8.0 is available for download!
  • New features to enhance the development process
  • Open CASCADE Technology 6.7.1 is available for download!

  • © OPEN CASCADE 2000 - 2014  |  Search  |  Contacts   |  Site map