gwnavgeneration/input/trianglesplitter.h Source File

trianglesplitter.h
Go to the documentation of this file.
1 /*
2 * Copyright 2015 Autodesk, Inc. All rights reserved.
3 * Use of this software is subject to the terms of the Autodesk license agreement and any attachments or Appendices thereto provided at the time of installation or download,
4 * or which otherwise accompanies this software in either electronic or hard copy form, or which is signed by you and accepted by Autodesk.
5 */
6 
7 
8 // primary contact: LASI - secondary contact: NONE
9 #ifndef GwNavGen_TriangleSplitter_H
10 #define GwNavGen_TriangleSplitter_H
11 
16 
17 namespace Kaim
18 {
19 
20 // This class essentially split a triangle into multiple sub triangles using the "IsTriangleTooBig" criteria from the coordSystem.
21 // Children will have the same winding (CW or CCW) as their parent.
22 // If the input triangles already satisfies the criteria, children list will be empty
23 class TriangleSplitter
24 {
25 public:
26  static KyResult SplitTriangleAccordingToGeneratorSystem(
27  const Vec3f& A, const Vec3f& B, const Vec3f& C, const GeneratorSystem& generatorSystem, KyArray<Vec3f>& childrenLegitTriangles);
28 
29 private: // internal usage
30  static KyResult StepSubDivide(const Vec3f& A, const Vec3f& B, const Vec3f& C, bool isCCW, KyArray<Vec3f>& children);
31 };
32 
33 
34 }
35 
36 
37 #endif
38 
KyInt32 KyResult
Defines a type that can be returned by methods or functions in the Gameware Navigation SDK to indicat...
Definition: types.h:254
Definition: gamekitcrowddispersion.h:20