My Project
LightGeoUtil.h
1 #pragma once
2 #include <string>
3 #include <vector>
4 #include "ParaVector3.h"
5 namespace ParaEngine
6 {
8  {
9  public:
10  // Create a sphere Mesh with a given radius, number of rings and number of segments
11  static void createSphere(std::vector<Vector3> & outPositions
12  , std::vector<unsigned short> & outIndices
13  , float radius
14  , int nRings, int nSegments
15  );
16 
17  // Create a cone Mesh with a given radius and number of vertices in base
18  // Created cone will have its head at 0,0,0, and will 'expand to' positive y
19  static void createCone(std::vector<Vector3> & outPositions
20  , std::vector<unsigned short> & outIndices
21  , float radius
22  , float height
23  , int nVerticesInBase);
24 
25  // Fill up a fresh copy of outPositions with a normalized quad
26  static void createQuad(std::vector<Vector3> & outPositions);
27 
28 
29  };
30 }
different physics engine has different winding order.
Definition: EventBinding.h:32
Definition: LightGeoUtil.h:7