Syntax |
CreateLoftedBRep3D함수를 이용한 Loft홍사훈 0건 382회 22-03-12 22:02 |
---|
관련링크
본문
Syntax
CreateLoftedBRep3D(...)
CreateLoftedBRep3D((list)outerProfiles, (list)innerProfiles, (bool)closecaps, (bool)createprofileedges,
(bool)linear, (bool)periodic) -> tuple : 프로파일 세트(개구부 포함)를 Loft하여 BRep3D 생성
Parameter
OuterProfile (외부 프로파일) / InnerProfile (내부 프로파일, 개구부)
Closecaps : 가능한 경우 BRep를 닫습니다. (모든 프로파일은 닫힙니다.)
Createprofileedges : Create profile edges and more surfaces or just create on surface
Linear : Linear 또는 Cubic 보간
Periodic : If the start profile is also to be the end profile
Return
Error code
BRep3D
사용 예제
minor1 = 1000; major1 = 1000
minor2 = 2000; major2 = 2000
apex_z = 5000
angle = AllplanGeo.Angle()
angle.Deg = 0
arc1 = AllplanGeo.Arc3D (AllplanGeo.Point3D(0, 0, 0),
AllplanGeo.Vector3D(1, 0, 0),
AllplanGeo.Vector3D(0, 0, 1),
minor1, major1, 0., angle.Rad)
arc2 = AllplanGeo.Arc3D (AllplanGeo.Point3D(0, 0, apex_z),
AllplanGeo.Vector3D(1, 0, 0),
AllplanGeo.Vector3D(0, 0, 1),
minor2, major2, 0., angle.Rad)
profiles = [arc1, arc2]
com_prop = AllplanBaseElements.CommonProperties()
com_prop.GetGlobalProperties()
com_prop.Color = 19
err, brep = AllplanGeo.CreateLoftedBRep3D(
profiles, ## 외측 Profile List
[], ## 내측 Profile List (내부가 비어 있을경우)
True, ## 가능한 경우 BRep를 닫음
False, ## Profile 모서리를 이용하여 여러 Surface를 생성하거나 하나의 Surface를 생성
True, ## 선형을 2차 보간
False) ## 시작 프로필과 연결
self.model_ele_list.append(AllplanBasisElements.ModelElement3D(com_prop, brep))
등록된 댓글이 없습니다.