文章目录
- 1、简介
- 2、3DXML查看工具
- 2.1 3DXML Player
- 2.2 Pixyz Studio
- 3、3DXML 开发用户手册
- 3.1 Model_3dxml
- 3.2 Model_3dxml/Header
- 3.3 Model_3dxml/ProductStructure
- 3.4 ProductStructureType/Reference3D
- 3.5 ProductStructureType/Instance3D
- 3.6 ProductStructureType/ReferenceRep
- 3.7 ProductStructureType/InstanceRep
- 3.8 RepresentationFormatType
- 4、3DXML文件结构组成
- 5、FAQ
- 5.1 catia导出3dxml的参数设置
- 5.2 catia的3dxml中模型格式
- 结语
1、简介
https://www.3ds.com/3ds-passport/downloads/
3DXML (dassault systemes 3d xml file)文件格式是一种重要的轻量化CAD数据格式.
3D XML (EXtensible Markup Language) is a universal, lightweight, XML-based format that enables users to capture and share live, accurate 3D data quickly and easily.
3D XML compresses highly complex data, provides rapid file transmission and shorter load times while maintaining the exact geometry of the files exchanged.
Unlike existing formats, 3D XML is fully based on standard XML. Therefore, any software program will be able to read, write, and enrich 3D XML contents using standard tools.
With 3D XML, the use of sophisticated 3D graphics is no longer restricted to engineering departments. These graphics can now easily be incorporated into technical documentation, maintenance manuals, marketing brochures, websites, email communications and many other everyday uses.
什么是 3DXML 文件?
- 3DXML 文件包含信息丰富的 3D 图像模型。这些细节可能包括核心几何形状、网格形状、纹理和照明效果。法国公司 Dassault 开发了 3DXML 文件格式,该格式以其准确性、复杂性和跨行业的广泛使用而闻名。
- 理解 3DXML 的最佳方式是拆分名称 — 3DXML 文件是 3D 的 XML 文件。XML 是一种简单的基于文本的格式,它提供了一个核心,有助于使 3DXML 文件高度可压缩(尤其是作为 zip 文件)。这反过来又使文件易于共享和嵌入 - 并且加载速度快。
- 尽管如此,3DXML 很复杂,包含曲面、边、顶点、权重、图像和对象的组合。此信息保存在二进制代码中——使用 1 和 0 对数据进行编码的双符号系统。
- 确保不要将 3DXML 与 X3D(另一个基于 XML 的 3D 建模文件)混淆。
- 3DXML 文件起源于 Dassault Systèmes,该公司成立于 1920 年代后期,最初在第二次世界大战期间制造飞机。1981 年,一家工业制造子公司从 Dassault Aviation 中分离出来,并开发了一种复杂的计算机辅助绘图 (CAD) 程序,该程序很快被制造业采用。
- 3DXML 文件高级 CAD 图像(具有纹理、照明和拓扑等元素)并允许大规模共享。它还使 CAD 图像更小、更易于传输,此外还简化了将 3D 图像插入文本文件的过程。
- 达索为压缩设计了 3DXML。将它们转换为标准 zip 文件很容易。图像的表面数据存储为所谓的 Gregory 补丁 ——一种有效的几何定义形式。这些面片被重新解释回网格表面上的面。您可以在电子邮件、网站、文档中以及作为附件共享 3DXML 文件。
3DXML 文件的优点:
- 快速高效。3DXML 重量轻且易于交换。压缩后,您可以一次发送多个。虽然复杂而精确,但它们的加载时间却是出了名的快。作为 zip 文件,您可以将它们拖放到许多应用程序中。
- .xml _ 可扩展标记语言是基于文本的代码,对于 Microsoft 记事本来说足够简单。它以干净的结构存储数据,因此各种程序都可以对其进行读写。这使得调整和编辑 3DXML 文件更加容易。
- 原生标准化。Dassault Systèmes 与其他行业协商改进了 3DXML 文件,但它也在其整个程序线中采用了该格式。如果您使用任何 Dassault 程序,您会发现 3DXML 运行顺畅。
2、3DXML查看工具
2.1 3DXML Player
- 下载和安装3DXML Player
https://www.3ds.com/zh/products-services/3d-xml/downloads/https://www.3ds.com/products-services/3d-xml/downloads/
Get your 3D XML player here to visualize 3D XML content in a
standalone application or embedded in your web browser.
Dassault Systèmes 3D XML 规范和播放器可以快速查看和调整信息丰富的 3D 模型。
- 在ie浏览器中运行这个控件
3DXMLPlayer.html:
2.2 Pixyz Studio
Pixyz Studio是一款独特的3D数据准备工具,提供一流的曲面细分和优化算法,能够将几乎所有行业领先的CAD解决方案中的CAD数据转换为轻量级,优化的网格,随时可以导出。
Pixyz Studio具有符合人体工程学和直观的用户界面,提供了一个强大而强大的查看器,是显示大量复杂3D数据所必需的。
- Import
- Export
- 加载一个3dxml文件。
使用Pixyz Studio导入和处理CAD数据时,将保留原始CAD文件中包含的所有信息的完整性:产品结构(层次结构),原始CAD曲面(BRep / Nurbs),材质分配和外观,PMI和所有类型的元数据。
- 通过python脚本导出模型树信息到本地xml文件
Pixyz Studio还附带了一个Python API,可通过嵌入式脚本编辑器访问,允许高级用户创建功能强大的脚本和插件来自动执行复杂的数据准备任务(除了用于批处理的导入/导出功能,仅限于Pixyz Batch产品)。
3、3DXML 开发用户手册
3D_XML_User_Guide_4.3.pdf:
The 3D XML format is used across all of Dassault Systèmes brands – CATIA, DELMIA, ENOVIA,
SIMULIA, 3DVIA, SolidWorks and Virtools. 3D XML format specification is part of “3D For All”
initiative for bringing 3D to the masses. Dassault Systemes currently offers a free 3D XML Player
for use with the 3DXML format as well as tools to capture 3D from other sources (3D PrintScreen).
The offering will continue to grow.
3.1 Model_3dxml
3.2 Model_3dxml/Header
3.3 Model_3dxml/ProductStructure
3.4 ProductStructureType/Reference3D
3.5 ProductStructureType/Instance3D
3.6 ProductStructureType/ReferenceRep
3.7 ProductStructureType/InstanceRep
3.8 RepresentationFormatType
4、3DXML文件结构组成
3dxml player(达索官网提供的预览工具)的内置的一个测试模型文件:Sample.3dxml
解压之后:
(1)Manifest.xml
这是入口文件,即起始文件,内容如下:
(2)Sample.3dxml
这是模型的总的结构树描述文件,文件名不固定,从上面的Manifest.xml中的标签里面获取。
(3).3DRep或.xml
这是模型文件的具体几何数据。个数一般有多个。文件内容格式一般分为ascii(.xml)和二进制(。3DRep)。
这里以3sh-1503571-00004560_2_6de6ae8b_898c_62663b46_349f6.xml为例,内容如下:
5、FAQ
5.1 catia导出3dxml的参数设置
5.2 catia的3dxml中模型格式
There is 3 different 3DXML format supported by CATIA V5 :
- Dynamic Tesselation (Exact geometry)
- Static Tesselation (Catia CGR)
- Xml Tesselation (ASCII and published)
The 3D XML settings page (Tools > Options > General > Compatibility > 3D XML) concerns the following settings categories:
When saving a CATProduct as a 3D XML document, three formats are available for the geometry:
- XML Tessellation
(1)Provides the representation of a part through a list of organized triangles (mesh) in XML format. Can be used for easy geometry exchange.
(2)lets you export geometry as 3D XML Mesh. This format is intended to provide a light visualization format for 3DForAll and some simplifications are made when saving a file (e.g. faces of bodies are grouped by color in a single face).
(3)Some functionalities such as DMU measure, section, etc. may not be supported. Therefore, it is not recommended to use this format when working with advanced DMU scenarios (involving the use of measure or interference functionalities, for instance). - Static Tessellation
Compressed triangular mesh with static accuracy.
If the assembly is in design mode, the accuracy used is the one specified in the visualization settings.
If the assembly is in visualization mode, the accuracy of each component will be that of the associated CGR in the V5 Cache. - Dynamic Tessellation
(1)Compressed representation containing a rough triangular mesh that can be refined when zooming in to discover details of the geometry (Dynamic Level of Details).
The maximum reachable accuracy is provided by the user at generation time using the Accuracy setting.
(2)To benefit from Dynamic Level of details, use 3D XML Player or 3DLive (Explore and Examine window).
(3)When opening a 3D XML file with dynamic tessellation in CATIA V5, the dynamic tessellation is converted at open time to a static triangular representation (with the accuracy selected at generation) for compatibility reason. - Export of Lineic Elements
(1)Lineic elements (wires, axis systems, points) are not exported by default in dynamic and Static Tessellation mode.
(2)To export these elements, you must check the option Tools > Options > Infrastructure > Product Structure > Cgr Management, Save lineic elements in cgr.
(3)Lineic elements are never exported in XML Tessellation mode.
结语
如果您觉得该方法或代码有一点点用处,可以给作者点个赞
如果您感觉方法或代码不咋地
//(ㄒoㄒ)//,就在评论处留言,作者继续改进;
o_O???
如果您需要相关功能的代码定制化开发,可以留言私信作者;
(✿◡‿◡)
感谢各位童鞋们的支持!
( ´ ▽´ )ノ ( ´ ▽´)っ!!!