Double curvature surfaces, faceted:

Some easy scriptin did that:
Option ExplicitSurfaceFaceting()
Sub SurfaceFaceting()
Dim strSurf : strSurf = Rhino.GetObject(“Select surface to facet”, 8, True, True)
If IsNull(strSurf) Then Exit SubDim intDetailLevel : intDetailLevel = Rhino.GetInteger(“Detail level”, 40, 2)
If IsNull(intDetailLevel) Then Exit SubDim dbl
Dim uDomain : uDomain = Rhino.SurfaceDomain(strSurf, 0)
Dim uStep : uStep = (uDomain(1) – uDomain(0))/intDetailLevelDim vDomain : vDomain = Rhino.SurfaceDomain(strSurf, 1)
Dim vStep : vStep = (vDomain(1) – vDomain(0))/intDetailLevelDim u, v, strFrame, pt
Call Rhino.EnableRedraw(False)
For u = uDomain(0) To uDomain(1) Step uStep
For v = vDomain(0) To vDomain(1) Step vStep
pt = Rhino.EvaluateSurface(strSurf, Array(u,v))
strFrame = Rhino.SurfaceFrame(strSurf, Array(u,v))
Call Rhino.AddPlaneSurface(strFrame, 1, 1)
Next
Next
Call Rhino.EnableRedraw(True)End Sub
This entry was posted on Thursday, September 27th, 2007 at 12:10 pm. It is filed under Uncategorized. You can follow any responses to this entry through the RSS 2.0 feed.
Documenting the works and thoughts of Dimitrie Stefanescu regarding architecture and related disciplines.
Mainly he is searching for meaningful applications of computer-driven practices in building science/architecture.
If you think you can contribute to his (hopefully) never-ending quest to find out the meaning of life, the universe and architecture, feel free to dump your brainwaves in the comment boxes or in an email. Right now his best answer is 42, so there's quite a lot of room for improvement.
Design by Graph Paper Press
Subscribe to entries
Subscribe to comments
All content © 2012 by @improved
