[G+smo]openNurbs相关的CAD文件格式转换
2015-04-23 20:06
127 查看
OpenNurbs是一个开源的读、写3dm文件的开发工具包。这里介绍使用gismo中的opennurbs进行3dm和xml文件格式间的转换。
#!bin/sh
echo "output plate with hole"
step 1. 读入3dm文件转化为xml
/home/yangsuse/code/gismo-build/bin/gsReadWrite_test /home/yangsuse/code/patch_test_square.3dm
step 2. 将xml转化为3dm文件前,需要使用makeMultiPatch程序添加边界信息
/home/yangsuse/code/gismo-build/bin/gsMakeMultiPatch /home/yangsuse/code/dump_write.xml
step3. 将xml文件转化为3dm文件;
/home/yangsuse/code/gismo-build/bin/gsReadWrite_test /home/yangsuse/code/makeMultipatch_output.xml
注意:
在CMAKE生成项目时,打开GISMO_WITH_ONURBS选项;
1. gsView 项目
Hi, give me a file (.txt, .axl) and I will try to draw it!
Usage:
--controlNet
Plot the control net (when applicable)
--element
Plot the element mesh (when applicable)
-s <int>, --samples <int>
Number of samples to use for viewing
--basis
Try to find and plot a basis contained in the file
--mesh
Try to find and plot a mesh contained in the file
--geometry
Try to find and plot a geometry contained in the file
--, --ignore_rest
Ignores the rest of the labeled arguments following this flag.
--version
Displays version information and exits.
-h, --help
Displays usage information and exits.
<string>
File containing data to draw (.xml, .axl, .txt)
gsView可以由xml文件,画出控制网,单元,基函数,网格等数据;
2. gsReadWrite_test 项目
读入一个3dm文件,转化为dump_write.xml文件。
读入一个xml文件,
3. 多片几何的排序和边界的排序
#!bin/sh
echo "output plate with hole"
step 1. 读入3dm文件转化为xml
/home/yangsuse/code/gismo-build/bin/gsReadWrite_test /home/yangsuse/code/patch_test_square.3dm
step 2. 将xml转化为3dm文件前,需要使用makeMultiPatch程序添加边界信息
/home/yangsuse/code/gismo-build/bin/gsMakeMultiPatch /home/yangsuse/code/dump_write.xml
step3. 将xml文件转化为3dm文件;
/home/yangsuse/code/gismo-build/bin/gsReadWrite_test /home/yangsuse/code/makeMultipatch_output.xml
注意:
在CMAKE生成项目时,打开GISMO_WITH_ONURBS选项;
1. gsView 项目
Hi, give me a file (.txt, .axl) and I will try to draw it!
Usage:
--controlNet
Plot the control net (when applicable)
--element
Plot the element mesh (when applicable)
-s <int>, --samples <int>
Number of samples to use for viewing
--basis
Try to find and plot a basis contained in the file
--mesh
Try to find and plot a mesh contained in the file
--geometry
Try to find and plot a geometry contained in the file
--, --ignore_rest
Ignores the rest of the labeled arguments following this flag.
--version
Displays version information and exits.
-h, --help
Displays usage information and exits.
<string>
File containing data to draw (.xml, .axl, .txt)
gsView可以由xml文件,画出控制网,单元,基函数,网格等数据;
2. gsReadWrite_test 项目
读入一个3dm文件,转化为dump_write.xml文件。
读入一个xml文件,
3. 多片几何的排序和边界的排序
相关文章推荐
- Office技巧:CAD转换PDF格式文件使用方法
- 把cad文件怎样转换成jpg图片格式
- Windows & Unix 文件格式之迷, 空格、回车换行、tab 转换及其相关工具(转载)
- Security证书相关文件格式汇总及其格式转换工具介绍
- CAD格式文件怎么进行转换
- pdf文件可以转换成cad格式吗?怎么转换
- 对CAD文件进行版本转换怎么设置格式
- CAD中文件如何转换为图片格式
- CAD如何转换成PDF格式文件的两大方法
- 如何利用PDF转CAD转换器转换文件格式
- 文件路径以及相关字符格式转换
- Windows & Unix 文件格式之迷, 空格、回车换行、tab 转换及其相关工具
- Windows & Unix 文件格式之迷, 空格 与 tab 转换及其相关工具
- 图文演示怎么将cad转换成pdf格式文件的技巧分享
- Windows & Unix 文件格式之迷, 空格、回车换行、tab 转换及其相关工具 .
- Windows & Unix 文件格式之迷, 空格 与 tab 转换及其相关工具
- Security证书相关文件格式汇总及其格式转换工具介绍
- HDFS文件系统内的文件格式转换(zip格式转化成gzip格式)
- CAD转换PDF技巧分享 手把手教你快速转换CAD文件
- 使用编码格式转换工具将cpp文件由GB18030转成UTF8