- UID
- 1
- 积分
- 16111
- 精华
- 贡献
-
- 威望
-
- 活跃度
-
- D豆
-
- 在线时间
- 小时
- 注册时间
- 2002-1-3
- 最后登录
- 1970-1-1
|
发表于 2004-4-28 15:38:28
|
显示全部楼层
Re: [求助]:如何判断拾取三个点在同一个闭合实体上?
最初由 yindb 发布
[B]如何判断拾取三个点在同一个闭合实体上?如,选择三个点如何判断在同一个圆上,或者同一个矩形上。 [/B]
从DB实体,得到GE实体,然后用AcGeCurve3d类的isOn方法判断是否在曲线实体上。
[field]
AcGeCurve3d::isOn Function Adesk::Boolean
isOn(
double param,
const AcGeTol& tol = AcGeContext::gTol) const;
param Input parameter value
tol Input tolerance
Determines if input parameter value is within valid parametric range of
curve.
--------------------------------------------------------------------------------
Adesk::Boolean
isOn(
const AcGePoint3d& pnt,
double& param,
const AcGeTol& tol = AcGeContext::gTol) const;
pnt Input any 3D point
param Output parameter value of pnt if pnt lies on curve
tol Input tolerance
Determines if pnt lies on curve. The param parameter is only set to a
meaningful value if this function returns a value of Adesk::kTrue.
--------------------------------------------------------------------------------
Adesk::Boolean
isOn(
const AcGePoint3d& pnt,
const AcGeTol& tol = AcGeContext::gTol) const;
pnt Input any 3D point
tol Input tolerance
Determines if input point lies on curve.
[/field] |
|