;;;-----------------------------------------------------------------------------;;;
;;;
;;; ---------------------------------------------------------------------------;;;
;;; SlopedRoof ;;;
;;; ---------------------------------------------------------------------------;;;
;;; function : Find the ridge lines of sloped roof ;;;
;;; ---------------------------------------------------------------------------;;;
;;; Return: ;;;
;;; 2D -- SlopedRoof Lines / SlopedRoof Closed Polygons of Each Side ;;;
;;; / Frame lines, like get by voronoi method, more accurate ;;;
;;; 3D -- SlopedRoof Closed Polygons of Each face ;;;
;;; / A Union Surface ;;;
;;; / Solids of Each face ;;;
;;; ---------------------------------------------------------------------------;;;
;;; Writen By GSLS(SS) June 2014 ;;;
;;; (C) EasyCity OptDesign Studio of Building Structures ;;;
;;; Email: chlh_jd@126.com Tel:86-592-5391029 Fax:86-592-5391020 ;;;
;;; ---------------------------------------------------------------------------;;;
;;; Main thread reference : ;;;
;;; JianGuo Li, Algorithm about generate slopedroof line from 2D polygon. ;;;
;;; [BC Dissertation]Hubei University in China . 2009. ;;;
;;; Many Thanks to JianGuo Li ! ;;;
;;; ------------------------------------------- ;;;
;;; JianGuo Li's article main abort references :
;;; [5] D.T.Lee. Medial axis transformation of a planar shape [J],IEEE Trans
;; PAM I , 1982, 4:363-369
;;; [6] Chin F, Snoeyink J., Wang C.A. Finding the medial axis of a simple
;;; polygon in linear time [J]. Discrete and Computational Geometry ,
;;; 1999, 21:405-420
;;; [8] Joseph O,Rourke. Computational Geometry In C [M].Second Edition.
;;; Cambridge University Press, 2004.179-181
;;; ......
;;; ---------------------------------------------------------------------------;;;
;;; Version revit See Command Routine . ;;;
;;; ------------------------------------------- ;;;
;;; Thanks Ribar.M from http://www.theswamp.org for do many test ;;;
;;; Thanks Lee Mac, Jueao Sword, Charles Alan Butler for their Wonderful functions
;;; ------------------------------------------- ;;;
;;; Discuss website : http://www.theswamp.org/index.php?topic=41837.0 ;;;
;;; ------------------------------------------- ;;;
;;; Future Expansion : Support Island Case ! ;;;
;;; ------------------------------------------- ;;;
;;; Any Advice will be welcome , Thank you ! ;;;
;;; ---------------------------------------------------------------------------;;;
;;; Statement :
;;; 1. When you use this program, all the consequences will be borne by yourself,
;;; Please repeatedly check its correctness .
;;; 2. This program is only for exchange and information, not for commercial use.
;;; ---------------------------------------------------------------------------;;;