明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
12
返回列表 发新帖
楼主: fl202

[已解答] entmake绘制半椭圆,遇到问题? 组码41的意义? 已解决。

[复制链接]
发表于 2015-11-21 12:05 | 显示全部楼层
椭圆还是有些复杂的
感谢了
发表于 2016-1-10 11:46 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
发表于 2016-1-13 20:10 来自手机 | 显示全部楼层
????????
 楼主| 发表于 2016-6-1 10:20 | 显示全部楼层
下面文献讲解了椭圆参数的计算,包括参数角、实际的起始角等等。

Calculate and entmake elliptical arcs (with LISP sample)  

ical arcs, group code 41 is described as the "start parameter".
However, its association with known values for the arc is difficult to
determine. How is this value derived?

An elliptical arc is a special version of an arc that follows the
eccentricity of the ellipse. One way to generate this type of arc is to find
the parametric normal of the starting point. To do so, you must specify a
start angle that is different from the actual start angle of the drawn arc.
Group code 41 contains this parametric angle expressed in
radians.

What Is the Parametric Angle?

The parametric angle is generated from two concentric circles whose center is
the center of the ellipse and whose radii are the major and minor axes,
respectively. Every point of the ellipse lies either between or on these two
circles, and each elliptical point can be defined by a unique relation to
them. To discover this relationship, draw a line perpendicular to the major
axis from a point on the ellipse to the closest intersection with the circle
described by the major axis. Then do the same with the minor axis, starting
from the elliptical point and drawing perpendicular to the minor axis until
the line intersects the circle described by the minor axis. The two points of
intersection with the circles are colinear with the center of the ellipse.
The angle between the line containing these three points and the major axis
is the parametric angle specified by group code 41.

How Do I Calculate It from the True Start Angle?

To calculate the parametric angle from the true start angle, you must
first find the start point on the ellipse. This requires a simultaneous
solution to the equations for the line and the ellipse. In this example we
assume that the major axis of the ellipse lies on the x-axis with the origin
at the center of the ellipse. When this point is found, you
can use its y-value and the minor axis to solve the equation for the circle
whose radius is the minor axis value and whose center is the center of the
ellipse. This will provide the x,y point on the circle that dictates the
parametric angle from the center of the ellipse.

Below is an AutoLisp example that demonstrates how to use trigonometric
functions to determine the parametric angle:
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 )  
©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途

GMT+8, 2024-5-21 01:13 , Processed in 0.152541 second(s), 19 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表