这是indexloc提供的服务,不要输入任何密码
Skip to content

Not closing LWPOLYLINE correctly #1189

@danikolovv

Description

@danikolovv

Hello,

Ent_LWPOLYLINE* ent_lwpolyline = object->tio.ent->tio.LWPOLYLINE;

have a property flag, which must be about if the current lwpolyline entity have to be with merged ends (its start and end points to be connected).

LibreDWG does not take the correct flag value, therefore using CLOSED flag there is a mismatch from the original CAD graphic and the LibreDWG created one.

Is this an addressed issue with the old versions of LibreDWG? Perhaps has this been resolved already in the latest version?

Please give me feedback on this.

__
Later amendment:

In the specifications for both DWG and DXF (written in LibreDWG's .spec files) it reads like so:
DWG -> 512 bit
DXF -> 1 bit

Therefore the flag must be between 1 and >= 512 (in decimal).

if (o->flag & 1 && o->flag & 512)
    o->flag = 512;

If not checked ( o->flag & 512 ) then how could we know if the flag is actually existing for the DWG file?

Previously: Here the flag may be > 1, then the flag set for the DWG file will be bigger than 512.

Thank you,
Daniel

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions