线性路径厚度

发布于 2025-01-15 14:54:45 字数 712 浏览 4 评论 0原文

我可以使用一些帮助来获得线性路径实体的厚度。创建线性路径模型(在本例中为金属闪光部件)按预期工作,但它没有厚度,这也是我喜欢的。到目前为止,我还没有找到任何关于如何执行此操作的有用提示。

如果我需要走另一条路,请指教。

代码部分:

        var b1 = Math.Cos(Utility.DegToRad(45)) * 30;
        var h1 = Math.Tan(Utility.DegToRad(45)) * 30;

        var l1 = new LinearPath(Plane.YZ,
                        new Point2D(0, 0),
                        new Point2D(60, 0),
                        new Point2D(60, -120),
                        new Point2D(60 + b1, -120 - h1)
                    );
        var s1 = l1.ExtrudeAsSolid(new Vector3D(500, 0, 0), 1);

        s1.Color = System.Drawing.Color.AliceBlue;
        s1.ColorMethod = colorMethodType.byEntity;

        return s1;

I can use some help to get thickness to a linear path solid. Creating the linear path model (in this case a metal flashing part) works as intended, but it has no thickness, which I like to have as well. I haven't so far found any useful hints on how to do this.

If I need to go another way, please advise.

Code part:

        var b1 = Math.Cos(Utility.DegToRad(45)) * 30;
        var h1 = Math.Tan(Utility.DegToRad(45)) * 30;

        var l1 = new LinearPath(Plane.YZ,
                        new Point2D(0, 0),
                        new Point2D(60, 0),
                        new Point2D(60, -120),
                        new Point2D(60 + b1, -120 - h1)
                    );
        var s1 = l1.ExtrudeAsSolid(new Vector3D(500, 0, 0), 1);

        s1.Color = System.Drawing.Color.AliceBlue;
        s1.ColorMethod = colorMethodType.byEntity;

        return s1;

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

酷遇一生 2025-01-22 14:54:45

我会尝试这样做:

var s1 = l1.ExtrudeAsSolid(new Vector3D(1, 0, 0), 0);

1 单位 的挤压向量和 的轮廓偏差(LinearPath 实体不受偏差影响)。

I would try this instead:

var s1 = l1.ExtrudeAsSolid(new Vector3D(1, 0, 0), 0);

An extrusion vector of 1 unit and a contour deviation of zero (LinearPath entity is not affected by deviation).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文