Replies: 2 comments 4 replies
-
Salut, This is the HELIX from 2000/Helix.dwg
Its CLASS is
so any type 517 is the HELIX, which is a subclass of a SPLINE. The AcDbHelix specialization has these fields after the AcDbSpline: // AcDbHelix
BITCODE_BL major_version; /*!< DXF 90: 27 */
BITCODE_BL maint_version; /*!< DXF 91: 1 */
BITCODE_3BD axis_base_pt; /*!< DXF 10 */
BITCODE_3BD start_pt; /*!< DXF 11 */
BITCODE_3BD axis_vector; /*!< DXF 12 */
BITCODE_BD radius; /*!< DXF 40 */
BITCODE_BD turns; /*!< DXF 41 */
BITCODE_BD turn_height; /*!< DXF 42 */
BITCODE_B handedness; /*!< DXF 290: 0: left, 1: right (twist) */
BITCODE_RC constraint_type; /*!< DXF 280: 0: turn_height, 1: turns, 2: height */ |
Beta Was this translation helpful? Give feedback.
-
obj->type is the number stored in the dwg, which is fixed for <500, and for >500 it's the index in the CLASS list (minus 500), which we call variable type. So 517 is the 17th class, but more importantly the class with number 517. Therefore I came up with fixedtype, which we map from type to a fixed enum. It's easier to check for this fixedtype field, even if the actual number is different for all variable types. If an object has a type >500, you need to lookup its class index. (or CLASS.number) The log is generated with Very happy to help with OpenCascade! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello there!
First of all, thank you for the fantastic work!
I am working on an OpenCascade based tool to create glTF 2.0
.glb
files from DWG files.I intend to open source this code under (A)GPL 3.
Anyway, to make sure my implementation works as well as possible, I am relying on the
.dwg
samples.One of them -
Helix.dwg
- caught my eye.I expect it to contain a
DWG_TYPE_HELIX
. But when reading the file, I get the517
entity type. Which matchesACSH_SPHERE_CLASS
. And as far as I can tell there is not a singleDWG_TYPE_HELIX
entity/object.Am I missing something?
Regards,
Beta Was this translation helpful? Give feedback.
All reactions