import PyMesh """ This module wraps the exact predicates Jonathan Richard Shewchuk. """ # The init function would be called when predicates module is imported. PyMesh.exactinit(); def orient_2D(p1, p2, p3): """ Determine the orientation 2D points p1, p2, p3 Args: p1,p2,p3: 2D points. Returns: positive if (p1, p2, p3) is in counterclockwise order. negative if (p1, p2, p3) is in clockwise order. 0.0 if they are collinear. """ return PyMesh.orient2d(p1, p2, p3); def orient_3D(p1, p2, p3, p4): """ Determine the orientation 3D points p1, p2, p3, p4. Args: p1,p2,p3,p4: 3D points. Returns: positive if p4 is below the plane formed by (p1, p2, p3). negative if p4 is above the plane formed by (p1, p2, p3).
import PyMesh """ This module wraps the exact predicates Jonathan Richard Shewchuk. """ # The init function would be called when predicates module is imported. PyMesh.exactinit() def orient_2D(p1, p2, p3): """ Determine the orientation 2D points p1, p2, p3 Args: p1,p2,p3: 2D points. Returns: positive if (p1, p2, p3) is in counterclockwise order. negative if (p1, p2, p3) is in clockwise order. 0.0 if they are collinear. """ return PyMesh.orient2d(p1, p2, p3) def orient_3D(p1, p2, p3, p4): """ Determine the orientation 3D points p1, p2, p3, p4. Args: p1,p2,p3,p4: 3D points. Returns: positive if p4 is below the plane formed by (p1, p2, p3).