Пример #1
0
        private Geometry3D GenerateMeshGeometry(Point3D center, Vector3D normal, Vector3D widthVector, double width, double height)
        {
            var         points  = ShapeHelper.GenerateRectangle(center, normal, widthVector, width, height);
            MeshBuilder builder = new MeshBuilder();

            builder.AddTube(points, thickness, 10, isTubeClosed: true);
            return(builder.ToMesh());
        }
        private Geometry GetGeometry(RectangleFeatureCurve rect)
        {
            var rectPoints = ShapeHelper.GenerateRectangle(rect.CenterResult,
                                                           rect.NormalResult,
                                                           rect.WidthVectorResult,
                                                           rect.WidthResult,
                                                           rect.HeightResult);

            return(GetProjectedGeometry(rectPoints));
        }