Exemplo n.º 1
0
 public SphereTreeNode(Vector3 center, float radius, SphereTree <T> tree, T data = default(T))
 {
     _tree          = tree;
     _data          = data;
     _sphere.Center = center;
     _sphere.Radius = radius;
 }
Exemplo n.º 2
0
 public MeshSphereTree(EditorMesh editorMesh)
 {
     _editorMesh = editorMesh;
     _sphereTree = new SphereTree <MeshSphereTreeTriangle>(2);
     _buildJob   = new MeshSphereTreeBuildJob(_editorMesh.GetAllTriangles(), _sphereTree);
     _buildJob.ValidateTriangle       = new MeshSphereTreeBuildJob.TriangleValidation(IsTriangleValid);
     _buildJob.OnSilentBuildFinished += OnSilentBuildFinished;
 }
 public GameObjectSphereTree(int numberOfChildNodesPerNode)
 {
     _sphereTree = new SphereTree <GameObject>(numberOfChildNodesPerNode);
 }
Exemplo n.º 4
0
 public MeshSphereTree(EditorMesh editorMesh)
 {
     _editorMesh = editorMesh;
     _sphereTree = new SphereTree <MeshSphereTreeTriangle>(2);
 }
Exemplo n.º 5
0
 public MeshSphereTreeBuildJob(List <Triangle3D> meshTriangles, SphereTree <MeshSphereTreeTriangle> sphereTree)
 {
     _meshTriangles = new List <Triangle3D>(meshTriangles);
     _sphereTree    = sphereTree;
 }
Exemplo n.º 6
0
 public SphereTreeNode(Sphere3D sphere, SphereTree <T> tree, T data = default(T))
 {
     _tree   = tree;
     _data   = data;
     _sphere = sphere;
 }