Reflect use Matrix transformation

Use this forum to ask questions about how to do things in QCAD.

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Attach drawing files and screenshots.

Post one question per topic.

Post Reply
duccoder
Active Member
Posts: 30
Joined: Thu Jun 25, 2015 10:11 am

Reflect use Matrix transformation

Post by duccoder » Mon Aug 03, 2015 5:00 am

Hi, I use QCAD Pro then I use Matrix Transformation tool.

I need use this to "reflect" entity. I use this matrix:

Image

Code: Select all

[-1 0]
[0 -1]
But when I type "D" = "A" = -1, QCAD force close. And I type "D" <> "A", it work

Image

- Please help me why and how to pass "D" = "A"?

- And I need use this on my ECMAScript, but I can't find doc, it's script on `Pro` scripts folder

User avatar
andrew
Site Admin
Posts: 8058
Joined: Fri Mar 30, 2007 6:07 am

Re: Reflect use Matrix transformation

Post by andrew » Tue Aug 18, 2015 10:16 am

Thanks for your report. I've created a bug report at:
http://www.qcad.org/bugtracker/index.ph ... sk_id=1252

If you wish to rotate entities in your script, you can use the rotate functions of entities or vectors or flipHorizontal / flipVertical for [[-1,0][0,-1]].

Generic matrix transformations are significantly more complex since an entity might change its type (an arc might become an ellipse arc, etc.).

Post Reply

Return to “QCAD 'How Do I' Questions”