AGX Dynamics 2.38.0.2
Loading...
Searching...
No Matches
planetri.h
Go to the documentation of this file.
1/*
2Copyright 2007-2024. Algoryx Simulation AB.
3
4All AGX source code, intellectual property, documentation, sample code,
5tutorials, scene files and technical white papers, are copyrighted, proprietary
6and confidential material of Algoryx Simulation AB. You may not download, read,
7store, distribute, publish, copy or otherwise disseminate, use or expose this
8material unless having a written signed agreement with Algoryx Simulation AB, or having been
9advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10valid commercial license from Algoryx Simulation AB.
11
12Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13from using this software, unless otherwise stated in written agreements with
14Algoryx Simulation AB.
15*/
16
17/*
18This source code has been taken and modified by Algoryx Simulation AB
19from the source and under the license given below.
20*/
22
23#ifndef PLANE_TRI_H
24
25#define PLANE_TRI_H
26
81namespace ConvexDecomposition
82{
83
84
85 enum PlaneTriResult
86 {
87 PTR_FRONT=1,
88 PTR_BACK=2,
89 PTR_SPLIT=4
90 };
91
92 PlaneTriResult planeTriIntersection(const double *plane, // the plane equation in Ax+By+Cz+D format
93 const double *triangle, // the source position triangle.
94 unsigned int tstride, // stride in bytes between vertices of the triangle.
95 double epsilon, // the co-planer epsilon value.
96 double *front, // the triangle in front of the
97 unsigned int &fcount, // number of vertices in the 'front' triangle.
98 double *back, // the triangle in back of the plane
99 unsigned int &bcount); // the number of vertices in the 'back' triangle.
100
101}
102
103
104#endif