Steve Biederman
Usenet Archive
- Joined
- Sep 12, 2003
- Messages
- 2
- Reaction score
- 0
Hi. I'm not an AutoCAD expert but am trying to write a DXF reader.
I'm having trouble interpreting the information in DXF's BLOCK and INSERT.
What's the algorithm for taking the location in a BLOCK, the Xscale factor, the Yscale factor, the rotation, the INSERT point, and determining where something goes? Let's assume we're in 2D, no Z values need to be considered.
Here's a concrete example:
The BLOCK has a line from, say, (3, 5) to (7, 13).
The INSERT says to Xscale by -1.5, to Yscale by 1.5, to rotate 270 degrees, and to insert at (15, 17). Where should this line end up?
Thanks
I'm having trouble interpreting the information in DXF's BLOCK and INSERT.
What's the algorithm for taking the location in a BLOCK, the Xscale factor, the Yscale factor, the rotation, the INSERT point, and determining where something goes? Let's assume we're in 2D, no Z values need to be considered.
Here's a concrete example:
The BLOCK has a line from, say, (3, 5) to (7, 13).
The INSERT says to Xscale by -1.5, to Yscale by 1.5, to rotate 270 degrees, and to insert at (15, 17). Where should this line end up?
Thanks