Skip to content

Instantly share code, notes, and snippets.

@land-Y
Last active December 31, 2019 12:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save land-Y/47f7f1ebcc5e53e5a8615ef174650137 to your computer and use it in GitHub Desktop.
Save land-Y/47f7f1ebcc5e53e5a8615ef174650137 to your computer and use it in GitHub Desktop.
app = Application
oSel = app.Selection
#選択オブジェクトのポリゴンを全て選択する
#選択ポリゴンの周囲エッジを選択
#ゴテツさんの厚みつけを適応する
#生成したエッジを選択してベベルを実行する
app.SelectGeometryComponents()
app.ActivateRaycastPolySelTool("")
app.SelectAllConnectedComponents( oSel )
app.SelectAllUsingFilter("Polygon", "siCheckComponentVisibility", "", "")
app.SelectPolygonOutline("")
app.SelectFilter("Edge")
app.ActivateRaycastPolySelTool("")
app.Interactive_Thickness()
app.SelectFilter("Edge")
oBeve = app.ApplyTopoOp("BevelComponent","", "siUnspecified", "siPersistentOperation", "")
app.SetValue(".polymsh.bevelop.ratio", 0.1, "")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment