protected void BuildChucks() { GeoObjectBuilder b = new GeoObjectBuilder(); GeoObject chuck1 = b.BuildVBOGeoObject(TemplateMeshes.Chuck, null); GeoObject chuck2 = b.BuildVBOGeoObject(TemplateMeshes.Chuck, null); GeoObject chuck3 = b.BuildVBOGeoObject(TemplateMeshes.Chuck, null); GeoObject chuck4 = b.BuildVBOGeoObject(TemplateMeshes.Chuck, null); chuck1.Rotate(Math.PI / 2, new Geometry.Vector3D(0, 0, 1)); chuck1.Translate(0, 150, 15); chuck2.Rotate(Math.PI / 2, new Geometry.Vector3D(0, 0, 1)); chuck2.Rotate(Math.PI, new Geometry.Vector3D(1, 0, 0)); chuck2.Translate(0, -150, -15); chuck3.Rotate(Math.PI / 2, new Geometry.Vector3D(0, 0, 1)); chuck3.Rotate(Math.PI / 2, new Geometry.Vector3D(1, 0, 0)); chuck3.Translate(0, 15, -150); chuck4.Rotate(Math.PI / 2, new Geometry.Vector3D(0, 0, 1)); chuck4.Rotate(Math.PI / 2, new Geometry.Vector3D(-1, 0, 0)); chuck4.Translate(0, -15, 150); JawChuck.MotionLessJaws.AddPart(chuck1); JawChuck.MotionLessJaws.AddPart(chuck2); JawChuck.MotionLessJaws.AddPart(chuck3); JawChuck.MotionLessJaws.AddPart(chuck4); }
private void BuildRotatingJaw() { GeoObjectBuilder b = new GeoObjectBuilder(); object[] oparams = new object[3]; oparams[0] = 0; // length oparams[1] = 40; // slice oparams[2] = 0; // radius JawChuck.RotatingJaws = b.BuildConcentricGeoObject(TemplateMeshes.RotatingJaw, oparams); }
protected void BuildJaw() { GeoObjectBuilder b = new GeoObjectBuilder(); object[] oparams = new object[3]; oparams[0] = 0; // length oparams[1] = 40; // slice oparams[2] = 0; // radius JawChuck.Chuck = b.BuildConcentricGeoObject(TemplateMeshes.SimpleChawJuckCylinder, oparams); }
internal void CreateRoughPart() { if (m_RoughPartExists) RemoveRoughPart(); Del2D handler = TemplateMeshes.Quad; GeoObjectBuilder builder = new GeoObjectBuilder(); object[] oparams = new object[4]; oparams[0] = RoughPartSpec.Length; // length oparams[1] = Initializer.RoughPartSlice; // slice oparams[2] = RoughPartSpec.Radius; // radius oparams[3] = Initializer.JawChuckOffset; RoughPartGeoObject o = builder.BuildRoughPartGeoObject(handler, oparams); o.LogWriter = GlobalModel.m_OutputWriter; o.AnimationLock = Lock; o.Render2D = false; Parts.Add(o); NotifyNewRoughPart(o); NotifyChuckPositions((double)oparams[2]); GlobalModel.OutputWriter.Write("Rough part created" + Environment.NewLine, "Output"); m_RoughPartExists = true; }
private IRender CreateJawChuck() { GeoObjectBuilder b = new GeoObjectBuilder(); object[] oparams = new object[3]; oparams[0] = Initializer.RoughPartLength; // length oparams[1] = 40; // Properties.RoughPartSlice; // slice oparams[2] = Initializer.RoughPartRadius; // radius return b.BuildConcentricGeoObject(TemplateMeshes.SimpleChawJuckCylinder, oparams); }