Allplan VisulScript/Python

Syntax

ConvertTo3D(...) - 2D -> 3D 변환

홍사훈     0건     325회

본문

Syntax 

ConvertTo3D( (2D Element) [, (float)zPlane=0] ) -> tuple


Parameter : 

  2D Element : Line2D, Polyline2D, Axis2D, Spline2D, Arc2D, BSpline2D, Path2D, Polygon2D, Clothoid2D)

  zPlane : 변환시 Z값 (생략시 z=0)


Return

  bool : true / false

  변환된 2D Element  (Clothoid2D는 -> 3D bspline) 

 

 

사용 예제

line2D = AllplanGeo.Line2D(AllplanGeo.Point2D(0,0),AllplanGeo.Point2D(1000,1000))

result, line3D = AllplanGeo.ConvertTo3D(line2D)

 

if not result:

   return

 

print(line2D) # Line2D(0, 0, 1000, 1000)

print(line3D) # Line3D(0, 0, 0, 1000,1000, 0)

 

 

등록된 댓글이 없습니다.



Copyrightⓡ1996~2025, sahoon.com All Rights Reserved.