Library of Assembled Shared Sources
|
This is the default policy. More...
#include <degenerate_policy.h>
This is the default policy.
NoDegenerate will not prevent a primitive to become degenerate, but it will check some basic conditions when you try to do "unsafe" operations and throws an exception on failure. e.g. CheckDegenerate will not allow you to get the edge(0)
or vector(0)
of a polygon with only one vertex.
However, it will not check all posible conditions. It will avoid expensive predicates. e.g. it will avoid to test if a polygon is simple, because that's too expensive. If you want all conditions to be checked, you should use StrictNoDegenerate
Definition at line 91 of file degenerate_policy.h.