v4.0
プレーンが指定のポイントを通るように slice-polygons オペレータのオフセットを設定します。
SnapOffsetToPointForSlicePolygons( Operator, Target ); |
' The following uses slice to cut a cube then uses SnapOffsetToPointForSlicePolygons ' to make sure the slice passes by the point #7. CreatePrim "Cube", "MeshSurface" ApplyTopoOp "SlicePolygons", "cube" SetValue "cube.polymsh.slicepolygonsop.planeref", 1 SetValue "cube.polymsh.slicepolygonsop.sliceplane", 3 SetValue "cube.polymsh.slicepolygonsop.planeposx", -0.235193390644333 SetValue "cube.polymsh.slicepolygonsop.planeposy", 1.12099707576442 SetValue "cube.polymsh.slicepolygonsop.planeposz", -0.33228724744653 SetValue "cube.polymsh.slicepolygonsop.planenormal", 1 SetValue "cube.polymsh.slicepolygonsop.planerotx", -4.61581248941901 SetValue "cube.polymsh.slicepolygonsop.planeroty", 0.702946180123846 SetValue "cube.polymsh.slicepolygonsop.planerotz", 17.3091725535308 SetValue "cube.polymsh.slicepolygonsop.uiradius", 7.20741807439402 SnapOffsetToPointForSlicePolygons "cube.polymsh.slicepolygonsop", "cube.pnt[7]" |