public void Show3d(Draw3d D3) { float Radius = SizeScale3d * this.Radius / SizeScale2d; Vector3 V = new Vector3(Radius, Radius, Radius); Polygon[] Polys = D3.getCuboid(Col, Leaf.Center * SizeScale3d - V, Leaf.Center * SizeScale3d + V); D3.Polygons.AddRange(Polys); }
public void Show3D(Draw3d D) { Vector3[] Points = new Vector3[] { Base *SizeScale3d, Tip1 *SizeScale3d, Tip2 *SizeScale3d }; Polygon P = new Polygon(Col, Points); D.Polygons.Add(P); if (CurrentSeed != null) { float Radius = SizeScale3d * CurrentSeed.Radius / SizeScale2d; Vector3 V = new Vector3(Radius, Radius, Radius); Polygon[] Polys = D.getCuboid(CurrentSeed.Col, Center * SizeScale3d - V, Center * SizeScale3d + V); D.Polygons.AddRange(Polys); } if (CurrentFlower != null) { CurrentFlower.Show3d(D); } }