public void CreateAllHSSBeams() { var x = 0.0; var z = 0.0; var hssFactory = new HSSPipeProfileFactory(); var profiles = hssFactory.AllProfiles().ToList(); var model = new Model(); foreach (var profile in profiles) { var color = new Color((float)(x / 20.0), (float)(z / profiles.Count), 0.0f, 1.0f); var line = new Line(new Vector3(x, 0, z), new Vector3(x, 3, z)); var m = new Material(Guid.NewGuid().ToString(), color, 0.1f, 0.4f); model.AddElement(m, false); var beam = new Beam(line, profile, m); model.AddElement(beam, false); x += 2.0; if (x > 20.0) { z += 2.0; x = 0.0; } } model.ToGlTF(); }
public void Setup() { var factory = new HSSPipeProfileFactory(); var hssProfiles = factory.AllProfiles().ToList(); _model = ElementCreation.DrawAllBeams(hssProfiles); _json = _model.ToJson(); }
public void TraceModelCreation() { var factory = new HSSPipeProfileFactory(); var hssProfiles = factory.AllProfiles().ToList(); var model = ElementCreation.DrawAllBeams(hssProfiles); model.ToGlTF(); }
public void TraceModelCreation() { Validators.Validator.DisableValidationOnConstruction = true; var factory = new HSSPipeProfileFactory(); var hssProfiles = factory.AllProfiles().ToList(); var model = ElementCreation.DrawAllBeams(hssProfiles); model.ToJson(gatherSubElements: false); }
public HSS() { var x = 0.0; var z = 0.0; var hssFactory = new HSSPipeProfileFactory(); var profiles = hssFactory.AllProfiles().ToList(); _model = new Model(); foreach (var profile in profiles) { var line = new Line(new Vector3(x, 0, z), new Vector3(x, 3, z)); var beam = new Beam(line, profile); _model.AddElement(beam); x += 2.0; if (x > 20.0) { z += 2.0; x = 0.0; } } }
public void GlobalSetup() { var factory = new HSSPipeProfileFactory(); _hssProfiles = factory.AllProfiles().ToList(); }