ScummVM API documentation
dgDelaunayTetrahedralization.h
1 /* Copyright (c) <2003-2011> <Julio Jerez, Newton Game Dynamics>
2 *
3 * This software is provided 'as-is', without any express or implied
4 * warranty. In no event will the authors be held liable for any damages
5 * arising from the use of this software.
6 *
7 * Permission is granted to anyone to use this software for any purpose,
8 * including commercial applications, and to alter it and redistribute it
9 * freely, subject to the following restrictions:
10 *
11 * 1. The origin of this software must not be misrepresented; you must not
12 * claim that you wrote the original software. If you use this software
13 * in a product, an acknowledgment in the product documentation would be
14 * appreciated but is not required.
15 *
16 * 2. Altered source versions must be plainly marked as such, and must not be
17 * misrepresented as being the original software.
18 *
19 * 3. This notice may not be removed or altered from any source distribution.
20 */
21 
22 #ifndef __DG_DEALUNAY_TETRAHEDRALIZAION_4D__
23 #define __DG_DEALUNAY_TETRAHEDRALIZAION_4D__
24 
25 #include "dgStdafx.h"
26 #include "dgConvexHull4d.h"
27 
29 public:
30  dgDelaunayTetrahedralization(dgMemoryAllocator *const allocator, const dgFloat64 *const vertexCloud, dgInt32 count, dgInt32 strideInByte, dgFloat64 distTol);
32  void RemoveUpperHull();
33 
34  dgInt32 AddVertex(const dgBigVector &vertex);
35 
36 protected:
37  virtual void DeleteFace(dgListNode *const node) ;
38  dgFloat64 GetTetraVolume(const dgConvexHull4dTetraherum *const tetra) const;
39 
40 
41 
42 #ifdef _DEBUG
43  static dgInt32 CompareVertexByIndex(const dgHullVector *const A, const dgHullVector *const B, void *const context);
44  void SortVertexArray();
45 #endif
46 
47 };
48 
49 #endif
Definition: dgConvexHull4d.h:52
Definition: dgConvexHull4d.h:96
Definition: dgDelaunayTetrahedralization.h:28
Definition: dgMemory.h:80
Definition: dgConvexHull4d.h:36
Definition: dgVector.h:104