AGX Dynamics
2.37.3.2
planetri.h
Go to the documentation of this file.
1
/*
2
Copyright 2007-2024. Algoryx Simulation AB.
3
4
All AGX source code, intellectual property, documentation, sample code,
5
tutorials, scene files and technical white papers, are copyrighted, proprietary
6
and confidential material of Algoryx Simulation AB. You may not download, read,
7
store, distribute, publish, copy or otherwise disseminate, use or expose this
8
material unless having a written signed agreement with Algoryx Simulation AB, or having been
9
advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10
valid commercial license from Algoryx Simulation AB.
11
12
Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13
from using this software, unless otherwise stated in written agreements with
14
Algoryx Simulation AB.
15
*/
16
17
/*
18
This source code has been taken and modified by Algoryx Simulation AB
19
from the source and under the license given below.
20
*/
22
23
#ifndef PLANE_TRI_H
24
25
#define PLANE_TRI_H
26
81
namespace
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
105
include
agxCollide
deprecated
ConvexDecomposition
planetri.h
Generated on Fri Apr 12 2024 12:40:25 for AGX Dynamics by
1.8.13