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

Extruding rectangle creates inside-out result

$
0
0

@Helvetosaur wrote:

Can anyone tell me why when I extrude a closed curve such as a rectangle, the result is “inside-out” (the backfaces face outwards)? Doesn’t make much sense to me…

import rhinoscriptsyntax as rs
import scriptcontext as sc
import Rhino

r=rs.GetRectangle()  #draw a rectangle in the Top viewport
plc=Rhino.Geometry.PolylineCurve([r[0],r[1],r[2],r[3],r[0]])
ex_vec=Rhino.Geometry.Vector3d(0,0,10)
ext=Rhino.Geometry.Surface.CreateExtrusion(plc,ex_vec)
sc.doc.Objects.AddSurface(ext)
sc.doc.Views.Redraw()

Thanks, --Mitch

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 5836

Latest Images

Trending Articles



Latest Images