当前位置:网站首页>初探基于OSG+OCC的CAD之任意多个子模型进行netgen以及gmsh网格划分
初探基于OSG+OCC的CAD之任意多个子模型进行netgen以及gmsh网格划分
2022-07-27 12:48:00 【潇湘散客】
此功能是对之前的网格交互操作的扩充,并无实时性的创新,此次修改是根据用于选中任意的模型树节点,通过找到该节点的所有shape后,对这些shape进行网格划分。修改实现了任意节点的隐藏、显示、高亮、消隐功能以及任意节点的网格划分功能。以网格划分为例:
核心思想是对查找到的所有的shape合并为一个新的shape,核心代码如下:
TopoDS_Shape QFormDoc::makeOneShape(Handle(TopTools_HSequenceOfShape) theShapes)
{
TopoDS_Shape res;
Standard_Integer nb = theShapes->Length();
if (nb == 0)
return res;
else if (nb == 1)
return theShapes->Value(1);
else
{
TopoDS_Compound C;
BRep_Builder B;
B.MakeCompound(C);
for (Standard_Integer i = 1; i <= nb; i++)
{
B.Add(C, theShapes->Value(i));
}
return C;
}
}
其他接口不需要变化,直接把新的shape传给netgen或者gmsh就行了,显示这些也是一样的,直接来先看下效果:

边栏推荐
- 2021-03-15
- Gan: generate adversarial networks
- Set interface
- Aike AI frontier promotion (7.27)
- Sff1004-mhchxm diode sff1004
- Antd's tool function getprefixcls gets the public prefix
- 延迟队列DelayQueue性能测试
- Interviewer: how to deal with the data loss of redis master-slave cluster switching?
- Xposed+fdex2 app shelling (black cat complains about app shelling)
- Laboratory procedures and references of chloramphenicol acetate
猜你喜欢

@Simple understanding and use of conditionalonproperty
![[cute new solution] Fibonacci sequence](/img/2d/64cdc8b7625ee7a81275ad25dc2b7a.png)
[cute new solution] Fibonacci sequence

文章复现:SRCNN

视频游戏沉迷行为研究综述

爱可可AI前沿推介(7.27)

heap

CVPR22 | 关系意识的图神经架构搜索

How to ask questions on the road for the first time - necessary skills for self-study (with live playback)

开源项目丨Taier1.2版本发布,新增工作流、租户绑定简化等多项功能

Getting started for beginners: build your own blog with WordPress
随机推荐
概述有名内部类与匿名内部类
How to ask questions on the road for the first time - necessary skills for self-study (with live playback)
记忆中的香河肉饼
Gartner 权威预测未来4年网络安全的8大发展趋势
最新版泛域名证书申请
Specify the add method of HashSet
500强企业如何提升研发效能?来看看行业专家怎么说!
C program debugging and exception handling (try catch)
PG synchronizes multiple data tables to MySQL. Is there a way to simplify the configuration?
Feign的两个调用处理器
nodejs body-parser中间件处理类型 multipart/form-data 的 POST 表单数据,req.body无法接收到数据
Lambda expression
Flinksql synchronizes data from Oracle to Doris, with a total of more than 50 fields and more than 30 million entries in Oracle tables
分布式系统架构理论与组件
[nuxt 3] (XII) project directory structure 2
Eccv2022 | Ru & Google proposed to use clip for zero shot target detection!
Time tool class, get the current time, date to string
Poj1273 drainage ditches [maximum flow] [SAP]
js真伪数组转换
MySQL扩展