Donnerstag, 18. Februar 2010

Autocad LOADCTRLS

0x01
Load application on detection of proxy object

0x02
Load the application on AutoCAD startup

0x04
Load the application on command invocation

0x08
Load the application on request by user or other application

0x10
Do not load the application

0x20
Load the application transparently

I just figured out that these values are provided by the ApplicationLoadReasons enumerator in the acdbmgd.dll:





Mittwoch, 17. Februar 2010

Vertex Order of a Polygon

I have been struggling finding a way to determine whether a (simple) polygon has its vertices counter clockwise or clockwise ordered.

It is often the case that the soulition is simplier than it looks like. I´ll record two of them, both O(n).

You can calculate the area of the polygon, with
Positive A is counter clockwise, negative... you know.

The other way, if you need/have the concavity of any given vertex is to look for one that lies on the bounding box. Counter clockwise is bounding box vertex convex.

Dienstag, 16. Februar 2010

Jetzt geht´s los!

Welcome to a new place where we put the things that fall from my head.