如何从 dxf 文件解析 nurbs 表面?或者你知道用于解析它的库(对于 js,如果存在或任何其他语言)? [英] How I can parse nurbs surface from dxf file? Or do you know library(for js, if exists or any other language) for parsing it?

查看:25
本文介绍了如何从 dxf 文件解析 nurbs 表面?或者你知道用于解析它的库(对于 js,如果存在或任何其他语言)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试解析 autocad nurbs 曲面并使用 javascript 中的 webGL 进行三角测量.我已经在寻找 bjnortier 的 dxf 解析器.它支持大多数实体,如线、弧、3D 面、折线、lwpolyline 等,但不支持曲面.有图书馆吗?请帮忙!

I am trying to parse autocad nurbs surface and draw with triangulation using webGL in javascript. I already looked for dxf parser by bjnortier. It supports majority entities like line,arc,3Dface, polyline, lwpolyline, etc., but doesn't support surfaces. Is there any library? Help, please!

推荐答案

不幸的是,这些实体,如 BODY、3DSOLID、SURFACE、REGION 等,都存储为嵌入在 DXF 文件中的 ACIS 数据.

Unfortunately these entities like BODY, 3DSOLID, SURFACE, REGION and so on, are stored as ACIS data embedded in DXF files.

对于不同的 DXF 版本,ACIS 数据以不同的方式嵌入.对于较旧的 DXF 版本,ACIS 数据作为低加密文本文件 (SAT) 嵌入实体主体中,从 DXF R2013 开始,二进制文件 (SAB) 存储在 ACDSDATA 部分.

The ACIS data is embedded in different ways for different DXF version. For older DXF versions the ACIS data is embedded as poorly encrypted text file (SAT) in the entity body and starting with DXF R2013, binary files (SAB) stored in the ACDSDATA section.

但即使您可以提取这些数据,它也几乎没有用,因为 ACIS 格式不是开放数据格式,您需要 Spatial Inc.,可让您访问他们的 SDK,以处理 ACIS 数据.

But even if you can extract this data, it is pretty much useless, because the ACIS format is not an open data format and you need a license by Spatial Inc., which gives you access to their SDK, to process the ACIS data.

因此您不太可能找到支持 ACIS 实体的免费库.

So it is very unlikely you will find a free library which supports ACIS entities.

这篇关于如何从 dxf 文件解析 nurbs 表面?或者你知道用于解析它的库(对于 js,如果存在或任何其他语言)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆