pythonCascade Sample Problems

 Geometry: Surface of revolution

 

        array = []

        array.append(gp_Pnt(0,0,1))                                         

        array.append(gp_Pnt(1,2,2))                                         

        array.append(gp_Pnt(2,3,3))                                         

        array.append(gp_Pnt(4,3,4))                                         

        array.append(gp_Pnt(5,5,5))                                         

        aCurve = GeomAPI_PointsToBSpline(array).Curve()

 

        SOR =Geom_SurfaceOfRevolution(aCurve,gp().OX())

       

        self.DisplaySurface(SOR,1,color = Quantity_NOC_GREEN)

       

        self.DisplayCurve(aCurve,0,Quantity_NOC_RED)