AGX Dynamics  2.37.3.2
ConvexUtils.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 #ifndef AGXCOLLIDE_CONVEX_UTILS_H
18 #define AGXCOLLIDE_CONVEX_UTILS_H
19 
20 #include <agxCollide/Contacts.h>
22 
23 namespace agxCollide
24 {
25 
42  const Shape* convexShape1,
43  const Shape* convexShape2,
44  const agx::AffineMatrix4x4& transform1,
45  const agx::AffineMatrix4x4& transform2,
47  const agx::Real epaAccuracy = agx::AGX_EQUIVALENT_EPSILON);
48 
49 
67  const agxCollide::Shape* shape1,
68  const agxCollide::Shape* shape2,
69  const agx::AffineMatrix4x4& transform1,
70  const agx::AffineMatrix4x4& transform2,
71  const agx::Vec3& point,
72  const agx::Vec3& normal,
73  const agx::Real deepestDepth,
75  bool& keepOriginalPoint );
76 
82  AGXPHYSICS_EXPORT bool isPointInsideConvex(const agx::Vec3& point, const agxCollide::Convex* convex);
83 }
84 
85 
86 #endif
87 
88 
Base class for a shape.
Definition: Shape.h:53
This namespace consists of a set of classes for handling geometric intersection tests including boole...
#define AGXPHYSICS_EXPORT
const Real AGX_EQUIVALENT_EPSILON
Definition: Math.h:57
A convex class for geometric intersection tests.
Definition: Convex.h:36
AGXPHYSICS_EXPORT void createSupportContactPoints(const agxCollide::Shape *shape1, const agxCollide::Shape *shape2, const agx::AffineMatrix4x4 &transform1, const agx::AffineMatrix4x4 &transform2, const agx::Vec3 &point, const agx::Vec3 &normal, const agx::Real deepestDepth, agxCollide::ShapeCollider::LocalContactPointVector &result, bool &keepOriginalPoint)
Given 2 convex shapes and 1 contact point (which is assumed to be the deepest possible point) this fu...
AGXPHYSICS_EXPORT bool isPointInsideConvex(const agx::Vec3 &point, const agxCollide::Convex *convex)
Check if a point in world coordinates is inside a given convex.
AGXPHYSICS_EXPORT void collideConvexConvex(const Shape *convexShape1, const Shape *convexShape2, const agx::AffineMatrix4x4 &transform1, const agx::AffineMatrix4x4 &transform2, ShapeCollider::LocalContactPointVector &result, const agx::Real epaAccuracy=agx::AGX_EQUIVALENT_EPSILON)
Collides two convex shapes (Box, Capsule, Convex, Cylinder, Sphere).
double Real
Definition: Real.h:42
agx::VectorPOD< LocalContactPoint > LocalContactPointVector