//List with vertices and positions of the vertices public PipeLayoutToMesh (PipeLayout _pipe_layout, bool _doubled_vertices) { //vertices = new Vector3[0]; pipe_layout = _pipe_layout; doubledVertices = _doubled_vertices; Initiate (); }
//List with vertices and positions of the vertices public PipeLayoutToMesh(PipeLayout _pipe_layout, bool _doubled_vertices) { //vertices = new Vector3[0]; pipe_layout = _pipe_layout; doubledVertices = _doubled_vertices; Initiate(); }
public PipeManager(Pipe.MeshCallback _meshCallback){ meshCallback = _meshCallback; pipe_layout = new PipeLayout (this); root_position = new Vector3 (0,0,0); root_rotation = new Quaternion (); ResetLayout(); }
public PipeManager(Pipe.MeshCallback _meshCallback) { meshCallback = _meshCallback; pipe_layout = new PipeLayout(this); root_position = new Vector3(0, 0, 0); root_rotation = new Quaternion(); ResetLayout(); }
public void ExtrudeRing(PipeLayout pipe_layout) { if (doubledVertices) { buildRingWithPhong(pipe_layout.amount_of_rings - 1); buildTrianglesWithPhong(); } else { buildRing(pipe_layout.amount_of_rings - 1); buildTriangles(); //buildTriangles2 (); } }
public void ExtrudeRing(PipeLayout pipe_layout){ if (doubledVertices) { buildRingWithPhong (pipe_layout.amount_of_rings - 1); } buildTriangles (); }