How to gat entities points in order to make an envelope?

Discuss and ask questions about CAD VCL (Delphi and C++ Builder).

Moderators: SDS, support, admin

Post Reply
AmperNr1
Posts: 12
Joined: 13 Oct 2010, 15:16

How to gat entities points in order to make an envelope?

Post by AmperNr1 » 01 Feb 2011, 16:07

Hello.

For a few last days I've been struggling with the problem "how to describe an envelope around DXF file?".
I know that I should have vertexes points, but in one DXF file there are many kind of entities possible.
How to get that points - independently of particular kind of entity or how to describe an envelope (only for external entities) by others means?

Thank you for any help.

Best regards,

Mariusz Hyżorek

support
Posts: 3271
Joined: 30 Mar 2005, 11:36
Contact:

Re: How to gat entities points in order to make an envelope?

Post by support » 02 Feb 2011, 11:44

Hello Mariusz.
CAD Import VCL provides TsgCADImage.Extents property that describes rectangular area that contains all CAD entities. However envelope(curve) around all CAD entities can't be received by any provided method or property. This isn't a trivial task and some coding required. There is the TsgDXFEntity.Box property that describes 3d box embraced the entity. IMHO it can be used for 1-st analyzing step to determinate rough entities enveloping curve points.

Alexander.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

AmperNr1
Posts: 12
Joined: 13 Oct 2010, 15:16

Re: How to gat entities points in order to make an envelope?

Post by AmperNr1 » 02 Feb 2011, 17:28

Thank You for advice.
I know that this problem is not trivial. I'm going to make some my class and methods to create an envelope, but this will be very useful in the future.

Best regards,

Mariusz

Post Reply