Femtet2026.0マクロヘルプ/マニュアル
 

ホーム / モデリング / CGaudi / 関数 / MultiFillet

MultiFillet2関数

定義

MultiFillet2 (VertexList() As CGaudiVertex, EdgeList() As CGaudiEdge, FaceList() As CGaudiFace, BodyList() As CGaudiBody, R As Double) As Boolean
 


[Python]
 MultiFillet2_py(CGaudiVertex[] VertexList, CGaudiEdge[] EdgeList, CGaudiFace[] FaceList, CGaudiBody[] BodyList,  double R)

戻り値

True   成功
False   失敗
 


[Python]
True   成功
False   失敗

引数

VertexList   丸み付けを行う点トポロジ配列
EdgeList   丸み付けを行う辺トポロジ配列
FaceList   丸み付けを行う面トポロジ配列
BodyList   丸み付けを行うボディ配列
R   丸み付け半径
 


[Python]
VertexList   丸み付けを行う点トポロジ(CGaudiVertex)配列
EdgeList   丸み付けを行う辺トポロジ(CGaudiEdge)配列
FaceList   丸み付けを行う面トポロジ(CGaudiFace)配列
BodyList   丸み付けを行うボディ(CGaudiBody)配列
R   丸み付け半径

解説

指定されたトポロジとボディ全てに対して丸み付けを実行します。

実行例

  '------- null***の定義 -------

  '下記の四つの変数はCGaudiクラスMulti***を使用する場合に用います。

  '例えばMultiFillet2を使用する場合に引数であるVertexList(点トポロジ)、BodyList(ボディ)は指定せず

  'EdgeList(辺トポロジ)、FaceList(面トポロジ)だけをFilletする場合にnullVertex()、nullBody()を用います。

  'Gaudi.MultiFillet2 nullVertex,EdgeList,FaceList,nullBodyとすれば

  '複数の辺トポロジ、面トポロジのみをFilletすることができます。

  Global nullVertex() As CGaudiVertex

  Global nullEdge() As CGaudiEdge

  Global nullFace() As CGaudiFace

  Global nullBody() As CGaudiBody

 

  '------- Body配列変数の定義 -------

  Dim Body() As CGaudiBody

 

  '------- CreateBox -------

  ReDim Preserve Body(0)

  Dim Point0 As New CGaudiPoint

  Point0.SetCoord 0#, 0#, 0#

  Set Body(0) = Gaudi.CreateBox(Point0, 5, 5, 5)

 

  '------- CreateBox -------

  ReDim Preserve Body(1)

  Dim Point1 As New CGaudiPoint

  Point1.SetCoord 10#, 0#, 0#

  Set Body(1) = Gaudi.CreateBox(Point1, 5, 5, 5)

 

  '------- Fillet -------

  Dim Vertex0(1) As CGaudiVertex

  Dim Edge0(1) As CGaudiEdge

  Dim Face0(1) As CGaudiFace

  Set Vertex0(0) = Body(0).GetVertexByID(23)

  Set Vertex0(1) = Body(0).GetVertexByID(17)

  Set Edge0(0) = Body(0).GetEdgeByID(28)

  Set Edge0(1) = Body(0).GetEdgeByID(16)

  Set Face0(0) = Body(1).GetFaceByID(30)

  Set Face0(1) = Body(1).GetFaceByID(2)

  Gaudi.MultiFillet2 Vertex0, Edge0, Face0, nullBody, 1