当前位置:网站首页>Preliminary discussion on NetGen and Gmsh mesh generation of any multiple sub models of CAD based on osg+occ
Preliminary discussion on NetGen and Gmsh mesh generation of any multiple sub models of CAD based on osg+occ
2022-07-27 13:19:00 【Xiaoxiang individual tourists】
This function is an extension of the previous grid interaction , There is no real-time innovation , This modification is based on the selection of any model tree node , By finding all of the nodes shape after , For these shape Meshing . The modification realizes the hiding of any node 、 Show 、 The highlighted 、 Hidden function and meshing function of any node . Take grid division as an example :
The core idea is to find all shape Merge into a new shape, The core code is as follows :
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;
}
}
Other interfaces do not need to be changed , Just put the new shape Pass to netgen perhaps gmsh That's it , It is the same to show these , Come directly and see the effect first :

边栏推荐
- 绝对定位
- Lambda expression
- 一款能模糊的地方都能模糊的测试工具——Wfuzz
- What should I do if I can't see any tiles on SAP Fiori launchpad?
- Time tool class, get the current time, date to string
- Xshell7 can log in to MySQL virtual machine, but not mysql
- Delay queue performance test
- SQL statement problem, calculate the data with a difference of less than 10 minutes to be displayed as the same batch of data
- Set interface
- [node+ts] build node+typescript project
猜你喜欢

W3School导航栏练习

Xposed+fdex2 app shelling (black cat complains about app shelling)

The sparksubmit. Main () method submits external parameters and remotely submits the standalone cluster task

Seata 在蚂蚁国际银行业务的落地实践

Overview of static inner classes and non static inner classes

MySQL扩展

v-on基础指令

Qt优秀开源项目之十三:QScintilla

赋能金融风控加分项的这30个问题,您都搞懂了吗

Cvpr22 | graph neural architecture search of relational consciousness
随机推荐
Amd adrenalin 22.7.1 driver update: double the performance of OpenGL and support Microsoft win11 22h2 system
W3School导航栏练习
图标字体
The sparksubmit. Main () method submits external parameters and remotely submits the standalone cluster task
POJ2594 Treasure Exploration【二分图最小路径覆盖】【Floyd】
Laboratory procedures and references of chloramphenicol acetate
Gan: generate adversarial networks
[node+ts] build node+typescript project
7-16 daily sword finger offer II 041. Average value of sliding window
500强企业如何提升研发效能?来看看行业专家怎么说!
AMD Adrenalin 22.7.1 驱动更新:OpenGL 性能翻倍,支持微软 Win11 22H2 系统
Getting started for beginners: build your own blog with WordPress
元素的层级
Overview of famous inner classes and anonymous inner classes
Zhongke Lanxun fell 30% on the first day of listing: Huang Zhiqiang, 60, started a company with a market value of 7.7 billion
程序员培训学习后好找工作吗
视频游戏沉迷行为研究综述
v-text
SQL GROUP BY语句
Application for the latest version of Pan domain name certificate