Panda3D
Loading...
Searching...
No Matches
physxConvexMeshDesc.I
Go to the documentation of this file.
1/**
2 * PANDA 3D SOFTWARE
3 * Copyright (c) Carnegie Mellon University. All rights reserved.
4 *
5 * All use of this software is subject to the terms of the revised BSD
6 * license. You should have received a copy of this license along
7 * with this source code in a file named "LICENSE."
8 *
9 * @file physxConvexMeshDesc.I
10 * @author enn0x
11 * @date 2009-10-11
12 */
13
14/**
15 *
16 */
17INLINE PhysxConvexMeshDesc::
18PhysxConvexMeshDesc() {
19
20 _desc.flags = NX_CF_COMPUTE_CONVEX;
21 _desc.pointStrideBytes = sizeof(NxVec3);
22 _desc.points = nullptr;
23
24 _vertices = nullptr;
25}
26
27/**
28 *
29 */
30INLINE PhysxConvexMeshDesc::
31~PhysxConvexMeshDesc() {
32
33 if (_vertices) {
34 delete [] _vertices;
35 }
36}
37
38/**
39 * Returns true if the descriptor is valid.
40 */
42is_valid() const {
43
44 return _desc.isValid();
45}
bool is_valid() const
Returns true if the descriptor is valid.