コード例 #1
0
 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();
 }
コード例 #2
0
        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());
            }
        }
コード例 #3
0
 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());
 }
コード例 #4
0
 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());
 }
コード例 #5
0
        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);
            }
        }