public static void Read(this VectorsReader reader, SnappedCuboid cuboid) { cuboid.CenterResult = reader.ReadPoint3D(); cuboid.WidthResult = reader.ReadValue(); cuboid.HeightResult = reader.ReadValue(); cuboid.DepthResult = reader.ReadValue(); cuboid.Wresult = reader.ReadVector3D(); cuboid.Hresult = reader.ReadVector3D(); cuboid.Dresult = reader.ReadVector3D(); }
public static void Read(this VectorsReader reader, SnappedBendedGenCylinder bgc) { bgc.BottomCenterResult = reader.ReadPoint3D(); bgc.NPtopResult = reader.ReadVector(); bgc.NPbotResult = reader.ReadVector(); bgc.Uresult = reader.ReadVector3D(); bgc.Vresult = reader.ReadVector3D(); foreach (var i in Enumerable.Range(0, bgc.ComponentResults.Length)) { bgc.ComponentResults[i] = new BendedCylinderComponent(reader.ReadValue(), bgc.ComponentResults[i].Progress, reader.ReadValue(), reader.ReadValue()); } }
public static void Read(this VectorsReader reader, SnappedCylinder cylinder) { cylinder.BottomCenterResult = reader.ReadPoint3D(); cylinder.AxisResult = reader.ReadVector3D(); cylinder.LengthResult = reader.ReadValue(); cylinder.RadiusResult = Math.Abs(reader.ReadValue()); }
public static void Read(this VectorsReader reader, SnappedCone cone) { cone.BottomCenterResult = reader.ReadPoint3D(); cone.AxisResult = reader.ReadVector3D(); cone.LengthResult = reader.ReadValue(); cone.TopRadiusResult = Math.Abs(reader.ReadValue()); cone.BottomRadiusResult = Math.Abs(reader.ReadValue()); }
public static void Read(this VectorsReader reader, SnappedStraightGenCylinder sgc) { sgc.BottomCenterResult = reader.ReadPoint3D(); sgc.AxisResult = reader.ReadVector3D(); sgc.LengthResult = reader.ReadValue(); foreach (var i in Enumerable.Range(0, sgc.ComponentResults.Length)) { sgc.ComponentResults[i] = new CylinderComponent(reader.ReadValue(), sgc.ComponentResults[i].Progress); } }