< 返回

建立基本的三维基本体

圆柱

```topoShape = theBrepTools:MakeCylinder(Vector3(0,0,0), Vector3(0,0,1), 30, 50, 0)
```

球

```topoShape = theBrepTools:MakeSphere(Vector3(0,0,0), 100)
```

长方体

``````topoShape = theBrepTools:MakeBox(Vector3(0,0,0), Vector3(0,0,1), Vector3(50,50,80))

圆台

``````topoShape = theBrepTools:MakeCone(Vector3(0,0,0), Vector3(0,0,1), 100,50, 50,0)

二维基本体

``````-- Circle
topoShape = theBrepTools:MakeCircle(Vector3(0,0,0), 100, Vector3(0,0,1))
-- Arc
arc = theBrepTools:MakeArc(Vector3(-50,0,0), Vector3(0, 50,0), Vector3(0,0,0))
-- Spline
pt1 = Vector3(0,0,0)
pt2 = Vector3(50,0,0)
pt3 = Vector3(100,30,0)
pt4 = Vector3(150,100,0)
pts = Vector3List()
spline = theBrepTools:MakeSpline(pts)

三维特征操作

拉伸

```arc = theBrepTools:MakeArc(Vector3(-50,0,0), Vector3(0, 50,0), Vector3(0,0,0))
extrude = theBrepTools:Extrude(arc, 100, Vector3(0,0,1))
```

扫略

```-- Section
circle = theBrepTools:MakeCircle(Vector3(0,0,0), 10, Vector3(1,0,0))
edgeGroup = TopoShapeGroup()
wire = theBrepTools:MakeWire(edgeGroup)
-- Path
pt1 = Vector3(0,0,0)
pt2 = Vector3(50,0,0)
pt3 = Vector3(100,30,0)
pt4 = Vector3(150,100,0)
pts = Vector3List()
spline = theBrepTools:MakeSpline(pts)
sweep = theBrepTools:Sweep(wire, spline)
```

回转体

```arc = theBrepTools:MakeArc(Vector3(-50,0,0), Vector3(0, 50,0), Vector3(0,0,0))
revol = theBrepTools:Revol(arc, Vector3(0,0,0), Vector3(1,0,1), 300)
```

总结

PS:需要的留下email

/template/Home/Dawn/PC/Static