public PipeMesh(PipeLayoutToMesh pipeLayoutToMesh) { this.pipeLayoutToMesh = pipeLayoutToMesh; uvs = new List <Vector2> (); normals = new List <Vector3> (); allUVs(); BuildMesh(); }
//totally redraw Mesh and Gizmo Layout public void ResetLayout(){ pipe_layout_to_mesh = new PipeLayoutToMesh (pipe_layout, hasPhong); CreateMesh (); if(drawGizmos){ pipe_gizmos = new PipeGizmos (pipe_layout_to_mesh.vertices, pipe_mesh.mesh, root_position, root_rotation); } meshCallback (pipe_mesh.mesh); }
//totally redraw Mesh and Gizmo Layout public void ResetLayout() { pipe_layout_to_mesh = new PipeLayoutToMesh(pipe_layout, hasPhong); CreateMesh(); if (drawGizmos) { pipe_gizmos = new PipeGizmos(pipe_layout_to_mesh.vertices, pipe_mesh.mesh, root_position, root_rotation); } meshCallback(pipe_mesh.mesh); }