OpenCascade 的构造曲面:面从中裁剪出来的无限数学曲面。cylindricalSurface 构建一个曲面,surfaceFromFace 读取面所在的曲面;两者都供 shapes.face.faceFromSurface、shapes.face.faceFromSurfaceAndWire 和 shapes.edge.makeEdgeFromGeom2dCurveAndSurface 使用。曲面没有边界,本身不能绘制。
cylindricalSurface
surfaceFromFace
shapes.face.faceFromSurface
shapes.face.faceFromSurfaceAndWire
shapes.edge.makeEdgeFromGeom2dCurveAndSurface
创建给定半径的无限圆柱面,绕经过 center 且沿 direction 的轴。
center
direction
它没有端部且无法绘制;用 shapes.face.faceFromSurfaceAndWire 从它切出一个面,或在生成面之后用 shapes.wire.placeWireOnFace 在其上放置线框。
shapes.wire.placeWireOnFace
半径、轴上的一点和轴方向
圆柱面
const cylinder = await bitbybit.occt.geom.surfaces.cylindricalSurface({ radius: 5, center: [0, 0, 0], direction: [0, 1, 0] }); Copy
const cylinder = await bitbybit.occt.geom.surfaces.cylindricalSurface({ radius: 5, center: [0, 0, 0], direction: [0, 1, 0] });
读取面所在的底层曲面,不含其边界。
面是这种曲面的一个有界部分;曲面本身延伸到面之外,这正是能在其上放置新线框并切出不同的面的原因。
面
面所在的曲面
const surface = await bitbybit.occt.geom.surfaces.surfaceFromFace({ shape: face }); Copy
const surface = await bitbybit.occt.geom.surfaces.surfaceFromFace({ shape: face });
Namespace: Bit
Other top-level symbols:
API reference home · Full symbol index · Tutorials and guides · Platform
OpenCascade 的构造曲面:面从中裁剪出来的无限数学曲面。
cylindricalSurface构建一个曲面,surfaceFromFace读取面所在的曲面;两者都供shapes.face.faceFromSurface、shapes.face.faceFromSurfaceAndWire和shapes.edge.makeEdgeFromGeom2dCurveAndSurface使用。曲面没有边界,本身不能绘制。