public void ValidIsocahedron() { var solid = new Isocahedron() { Size = new SharpDX.Vector3(1.0f, 1.0f, 1.0f) }; }
/*[Input("Size",DefaultValues= new double[] { 1,1,1})] * IDiffSpread<Vector3> FSize;*/ protected override DX11IndexedGeometry GetGeom(DX11RenderContext context, int slice) { Isocahedron iso = new Isocahedron(); iso.Size = new Vector3(1, 1, 1); return(context.Primitives.Isocahedron(iso)); }
protected override DX11IndexedGeometry GetGeom(DX11RenderContext context, int slice) { Isocahedron iso = new Isocahedron(); iso.Radius = FSize[slice]; return(context.Primitives.Isocahedron(iso)); }
public void IsocahedronRaiseEventsProperly() { int count = 0; var solid = new Isocahedron() { Size = new SharpDX.Vector3(1.0f, 1.0f, 1.0f) }; solid.PropertyChanged += (s, e) => count++; solid.Size = new SharpDX.Vector3(2.0f, 0.0f, 0.0f); Assert.AreEqual <int>(count, 1); }