pythonCascade Sample Problems
Geometry: Surfaces
from offsets

array1 = []
array1.append(gp_Pnt (-4,5,5 ))
array1.append(gp_Pnt (-3,6,6 ))
array1.append(gp_Pnt (-1,7,7 ))
array1.append(gp_Pnt (0,8,8))
array1.append(gp_Pnt (2,9,9))
SPL1 =
GeomAPI_PointsToBSpline(array1).Curve()
array2 =
[]
array2.append(gp_Pnt (-4,5,2 ))
array2.append(gp_Pnt (-3,6,3 ))
array2.append(gp_Pnt (-1,7,4 ))
array2.append(gp_Pnt (0,8,5))
array2.append(gp_Pnt (2,9,6))
SPL2 =
GeomAPI_PointsToBSpline(array2).Curve()
aGeomFill1 =
GeomFill_BSplineCurves(SPL1,SPL2,GeomFill_StretchStyle)
aGeomSurface
= aGeomFill1.Surface()
offset =
1
GOS =
Geom_OffsetSurface(aGeomSurface, offset)
offset =
2
GOS1 =
Geom_OffsetSurface(aGeomSurface, offset)
offset =
3
GOS2 =
Geom_OffsetSurface(aGeomSurface, offset)
self.DisplaySurface(aGeomSurface,1,color = Quantity_NOC_BLUE1)