コード例 #1
0
        public void Cuboid_100()
        {
            this.pointCloudSource = PointCloud.CreateCuboid(20f, 40f, 100);

//            myModel.Pointcloud.ResizeVerticesTo1();
            this.ShowResultsInWindow_Cube(true);
        }
コード例 #2
0
 public void TranslateCuboid()
 {
     this.pointCloudSource = PointCloud.CreateCuboid(5, 8, 60);
     pointCloudResult      = PointCloud.CloneAll(pointCloudSource);
     PointCloud.Translate(pointCloudResult, 30, -20, 12);
     ShowVerticesInWindow(new byte[4] {
         255, 255, 255, 255
     }, new byte[4] {
         255, 0, 0, 255
     });
 }
コード例 #3
0
        public void ScaleCuboid()
        {
            this.pointCloudSource = PointCloud.CreateCuboid(5, 8, 60);
            pointCloudResult      = PointCloud.CloneAll(pointCloudSource);

            PointCloud.ScaleByVector(pointCloudResult, new Vector3(1, 2, 3));
            ShowVerticesInWindow(new byte[4] {
                255, 255, 255, 255
            }, new byte[4] {
                255, 0, 0, 255
            });
        }
コード例 #4
0
        public void RotateScaleTranslate()
        {
            this.pointCloudSource = PointCloud.CreateCuboid(5, 8, 60);

            pointCloudResult = PointCloud.CloneAll(pointCloudSource);
            Matrix3 R = new Matrix3();

            R = R.RotationXYZDegrees(90, 124, -274);

            PointCloud.Rotate(pointCloudResult, R);
            PointCloud.Translate(pointCloudResult, 30, -20, 12);
            PointCloud.ScaleByVector(pointCloudResult, new Vector3(1, 2, 3));
            ShowVerticesInWindow(new byte[4] {
                255, 255, 255, 255
            }, new byte[4] {
                255, 0, 0, 255
            });
        }
コード例 #5
0
        public void RotateCuboid()
        {
            this.pointCloudSource = PointCloud.CreateCuboid(5, 8, 60);
            pointCloudResult      = PointCloud.CloneAll(pointCloudSource);

            Matrix3 R = new Matrix3();

            R = R.RotationXYZDegrees(90, 124, -274);


            PointCloud.Rotate(pointCloudResult, R);

            ShowVerticesInWindow(new byte[4] {
                255, 255, 255, 255
            }, new byte[4] {
                255, 0, 0, 255
            });
        }