pathFigures arcSegments 360deg可能吗? [英] pathFigures arcSegments 360deg possible?

查看:39
本文介绍了pathFigures arcSegments 360deg可能吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用pathFigures从外部CNC文本文件在画布上绘制形状

i use pathFigures to draw shapes on canvas from external CNC text file




当arcSegments不是360deg。工作正常:

and when the arcSegments is not 360deg. its working fine:

        < Path Stroke =" Black">

            < Path.Data>&
                <的PathGeometry>

&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; < PathFigure StartPoint =" 100,200">

                &NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; < ArcSegment Size =" 100,100""点= QUOT; 99200" IsLargeArc = QUOT;真" />

&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP ;&NBSP;&NBSP; < / PathFigure>&
                < / PathGeometry>&
            < /Path.Data>

        < / Path>

        <Path Stroke="Black">
            <Path.Data>
                <PathGeometry>
                    <PathFigure StartPoint="100,200">
                        <ArcSegment Size="100,100" Point="99,200" IsLargeArc="True"/>
                    </PathFigure>
                </PathGeometry>
            </Path.Data>
        </Path>

但当弧线为360度时,画布上没有可见的弧线

but when the the arc is 360deg i get no visible arc on canvas

      ;&NBSP; < Path Stroke =" Black">

            < Path.Data>&
                <的PathGeometry>

&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; < PathFigure StartPoint =" 100,200">

                &NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; < ArcSegment Size =" 100,100""点= QUOT; 100200" IsLargeArc = QUOT;真" />

&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP ;&NBSP;&NBSP; < / PathFigure>&
                < / PathGeometry>&
            < /Path.Data>

        < / Path>

       <Path Stroke="Black">
            <Path.Data>
                <PathGeometry>
                    <PathFigure StartPoint="100,200">
                        <ArcSegment Size="100,100" Point="100,200" IsLargeArc="True"/>
                    </PathFigure>
                </PathGeometry>
            </Path.Data>
        </Path>

有人知道解决方法吗?或者可能知道将弧分成两部分的数学运算。

anybody knows a workaround ? or maybe knows the math to split the arc in two .

推荐答案

Arcsegment有点奇怪,我从来没有真正找到一个合适的方法来制作一个圆圈。

Arcsegment is a bit strange, I've never really found a good way to work with it in order to produce a circle.

我' d只使用椭圆,但可能不符合您的目的。

I'd just use an ellipse but maybe that doesn't suit your purpose.


这篇关于pathFigures arcSegments 360deg可能吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆