protected override bool ImportStandtradShapeData() { LocalVertices.Add(new Vector3(-0.5f, -0.5f, 0.0f)); LocalVertices.Add(new Vector3(0.5f, -0.5f, 0.0f)); LocalVertices.Add(new Vector3(0.0f, 0.5f, 0.0f)); VerticesColors.Add(new Vector3(1.0f, 0.0f, 0.0f)); VerticesColors.Add(new Vector3(0.0f, 1.0f, 0.0f)); VerticesColors.Add(new Vector3(0.0f, 0.0f, 1.0f)); return(base.ImportStandtradShapeData()); }
protected override bool ImportStandtradShapeData() { LocalVertices.Add(new Vector3(0.5f, 0.5f, 0.0f)); // Top Right LocalVertices.Add(new Vector3(0.5f, -0.5f, 0.0f)); // Bottom Right LocalVertices.Add(new Vector3(-0.5f, -0.5f, 0.0f)); // Bottom Left LocalVertices.Add(new Vector3(-0.5f, 0.5f, 0.0f)); // Top Left VerticesColors.Add(new Vector3(1.0f, 0.0f, 0.0f)); VerticesColors.Add(new Vector3(0.0f, 1.0f, 0.0f)); VerticesColors.Add(new Vector3(0.0f, 0.0f, 1.0f)); return(base.ImportStandtradShapeData()); }
protected override bool ImportStandtradShapeData() { var MeshPolygons = MeshElement.Sphere(0.5); for (int i = 0; i < MeshPolygons.Length; i++) { //GL.Normal3(MeshPolygons[i].Normal); for (int j = 0; j < MeshPolygons[i].Vertices.Length; j++) { LocalVertices.Add(MeshPolygons[i].Vertices[j]); } } return(base.ImportStandtradShapeData()); }