ViewDesignEngine  3.1.0
高性能 CAD 计算几何引擎
modeling.h 文件参考

高层 B-Rep 建模 API 更多...

#include "vde/core/point.h"
#include "vde/brep/brep.h"
modeling.h 的引用(Include)关系图:

浏览源代码.

命名空间

 vde
 
 vde::brep
 

函数

BrepModel vde::brep::extrude (const curves::NurbsCurve &profile, const Vector3D &dir)
 沿方向挤出平面轮廓 更多...
 
BrepModel vde::brep::revolve (const curves::NurbsCurve &profile, const Point3D &axis_origin, const Vector3D &axis_dir, double angle_rad=2.0 *M_PI)
 绕轴旋转平面轮廓 更多...
 
BrepModel vde::brep::sweep (const curves::NurbsCurve &profile, const curves::NurbsCurve &path)
 沿任意路径扫掠轮廓 更多...
 
BrepModel vde::brep::loft (const std::vector< curves::NurbsCurve > &profiles)
 在两个或多个轮廓曲线之间放样 更多...
 
BrepModel vde::brep::make_box (double w, double h, double d)
 创建立方体 更多...
 
BrepModel vde::brep::make_cylinder (double radius, double height, int segments=32)
 创建圆柱体 更多...
 
BrepModel vde::brep::make_sphere (double radius, int segments_u=32, int segments_v=16)
 创建球体 更多...
 
BrepModel vde::brep::fillet (const BrepModel &body, int edge_id, double radius)
 对边做圆角处理 更多...
 
BrepModel vde::brep::chamfer (const BrepModel &body, int edge_id, double distance)
 对边做倒角 更多...
 
BrepModel vde::brep::shell (const BrepModel &body, int face_id, double thickness)
 抽壳(挖空实体) 更多...
 

详细描述

高层 B-Rep 建模 API

提供 B-Rep 实体的创建和编辑操作,类比于 CAD 系统的特征建模功能。

功能概览

类别 操作
基本体 make_box, make_cylinder, make_sphere
扫掠特征 extrude, revolve, sweep, loft
编辑操作 fillet, chamfer, shell

使用模式

每个函数返回一个新的 BrepModel(值语义),适合链式构建:

auto body = make_box(10, 5, 3);
// 或者更复杂的构建:
auto profile = NURBS 曲线;
auto swept = extrude(profile, Vector3D(0, 0, 10));
auto rounded = fillet(swept, 0, 2.0);
BrepModel fillet(const BrepModel &body, int edge_id, double radius)
对边做圆角处理
BrepModel extrude(const curves::NurbsCurve &profile, const Vector3D &dir)
沿方向挤出平面轮廓
BrepModel make_box(double w, double h, double d)
创建立方体
foundation::Vector3D Vector3D
双精度三维向量(重新导出)
Definition: point.h:49

在文件 modeling.h 中定义.