Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 4171

Rhinoscriptsyntax.ExtrudeSurface issue

$
0
0

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

Read full topic


Viewing all articles
Browse latest Browse all 4171

Latest Images

Trending Articles



Latest Images