## 24 March 2009

### Flat panels01

I'm working on complex surface tesselation with triangular flat panels. This rhinoscript:

-plot a grid of points at U,V parameters of input surface
-draws 3 lines in order to create a triangular shape
-fillet lines with variable radius to rounded the edges of triangle shape
-extract endpoints and startpoints of fillet arcs
-draw lines from start points to endpoints in sequence
-join results curves
-add planar surface to realize flat panel with rounded corners

"hot" code:

-------------
For i =1 To Intuint-2 Step 2
For j =1 To intvint-2 Step 2
arrcurve5=array(arrpt(i,j),arrpt(i+2,j))
arrcurve6=array(arrpt(i+2,j),arrpt(i,j+2))
arrcurve7=array(arrpt(i,j+2),arrpt(i,j))
arrFillet = Rhino.CurveFilletPoints(strCurve5, strCurve6,1)

arrFillet = Rhino.CurveFilletPoints(strCurve6, strCurve7,1)

arrFillet = Rhino.CurveFilletPoints(strCurve7, strCurve5,1)

arrpt1 = Rhino.CurveendPoint(arrfillet3)
arrpt2 = Rhino.CurvestartPoint(arrfillet1)

arrpt3 = Rhino.CurvestartPoint(arrfillet3)

arrpt4 = Rhino.CurveendPoint(arrfillet2)

arrpt5 = Rhino.CurveendPoint(arrfillet1)

arrpt6 = Rhino.CurvestartPoint(arrfillet2)