Direction of a closed polyline

Discussion forum for C++ and script developers who are using the QCAD development platform or who are looking to contribute to QCAD (translations, documentation, etc).

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Attach drawing files, scripts and screenshots.

Post one question per topic.

Post Reply
matthiaswm
Junior Member
Posts: 24
Joined: Mon Apr 29, 2013 4:34 pm

Direction of a closed polyline

Post by matthiaswm » Mon May 06, 2013 2:20 pm

I need to know if a close polyline is oriented clockwise or counterclockwise. Is there a function in RPolyLineEntity (dirction1() and direction2()?), or do I need to write my own?

Thanks,

Matthias

matthiaswm
Junior Member
Posts: 24
Joined: Mon Apr 29, 2013 4:34 pm

Re: Direction of a closed polyline

Post by matthiaswm » Wed May 08, 2013 7:17 am

Wrote it myself.

Post Reply

Return to “QCAD Programming, Script Programming and Contributing”