Applying the Extrude Surface method of the Rhinoscriptsyntax module reverts surprisingly the corrupted result whereas the curve excursion method of the Rhino common works totally fine. Maybe someone knows what is the cause here?
#Surface extrusion
import rhinoscriptsyntax as rs
Sr2 = rs.AddPlanarSrf(Cr)
NorPar = rs.SurfaceParameter(Sr2,(0.5, 0.5))
NormVect = rs.SurfaceNormal(Sr2,NorPar)
NormVect = NormVect*20
rs.MoveObject(Sr2,-NormVect/2)
DirLine = rs.AddLine((0,0,0), NormVect)
Wrong = rs.ExtrudeSurface(Sr2,DirLine,False)
#Curve extrusion
import Rhino as R
Cr = rs.coercecurve(Cr)
Fine = R.Geometry.Extrusion.Create(Cr,10,True)
Extrusion.gh (4.7 KB)
1 post - 1 participant