HI all, i’m beginner of python, i want to know how to left the final object only, i don’t need to draw any object in process.
as my code :
=====code start=====
import rhinoscriptsyntax as rs
wt = 15
pts = rs.GetPoints(True, True, “start point”, “next point”)
rs.EnableRedraw(False)
pl = rs.AddPolyline(pts)
plE = rs.OffsetCurve(pl,[0,0,0],(wt/2),None, 1)
plI = rs.OffsetCurve(pl,[0,0,0],(-1*wt/2),None, 1)
PL = [plE, plI]
base = rs.AddLoftSrf(PL, loft_type=2)
edge = rs.DuplicateEdgeCurves(base, False )
outline = rs.JoinCurves(edge, delete_input=True, tolerance=None)
srf = rs.AddPlanarSrf(outline)
rs.DeleteObject(pl)
rs.DeleteObjects(PL)
rs.DeleteObjects(edge)
rs.DeleteObjects(outline)
rs.DeleteObject(base)
rs.EnableRedraw(True)
=====code end=====
as my question, the code what i want is “srf” although i tried rs.deleteObject() and its worked in this simple code , but i want to know any idea about how to draw the final object “srf” only, do not draw the object in process.
thanks for help.
2 posts - 2 participants