Scale to the xy_centerpoint
'''
''' Scales All
''' —-
Function scaleAll (arrObject, xScale, yScale, zScale)
Dim strObject, dblDistance, strOffsetDirection, arrCenterPoint, arrBBox
' loop through each curve and offset
For Each strObject In arrObject
' get centerPoint
arrBBox = Rhino.BoundingBox(strObject)
arrCenterPoint = array((((arrBBox(2)(0)) + (arrBBox(0)(0))) / 2), (((arrBBox(2)(1)) + (arrBBox(0)(1))) / 2), (((arrBBox(2)(2)) + (arrBBox(0)(2))) / 2))
' scale object
Call Rhino.ScaleObject (strObject, arrCenterPoint, array(xScale,yScale,zScale))
Next
End Function
page_revision: 3, last_edited: 1218060169|%e %b %Y, %H:%M %Z (%O ago)





