iCAx开思工具箱

标题: CAA中在封闭曲线上做点 [打印本页]

作者: cupcake    时间: 2005-8-5 17:49
标题: CAA中在封闭曲线上做点
各位高手:
           我想用程序在一条封闭平面曲线上做一个点,我用CATIGSMFactory的按比例在曲线上做点的方式,程序报错,说是封闭曲线没有显式点作为参考,请问该怎么做呢?
作者: cupcake    时间: 2005-8-5 17:55
如图
作者: cupcake    时间: 2005-8-5 17:57
错误如下
作者: cupcake    时间: 2005-8-9 13:34
已知一个CATCurve_var,怎样判断它是否封闭?
作者: cupcake    时间: 2005-8-11 17:48
高手来看看啊
:)
作者: liuruixiao205    时间: 2005-8-12 10:15
圆你也可以得到它的始点、终点、中点了,在圆上做点时应该是以始点为参考的,判断是否封闭比较始点、中点坐标应该可以。
作者: liuruixiao205    时间: 2005-8-12 10:16
仅作参考,草绘的画的圆好像不行了。:)
作者: cupcake    时间: 2005-8-12 12:22
哈哈
我试试看
作者: acoka    时间: 2005-8-12 22:02
CATGeometry好像有个IsClose()的函数
作者: cupcake    时间: 2005-8-13 14:39
CATGeometry好像有个IsClose()的函数
  
我用的11版本,上面没有这个函数。
CATCurve有个IsClosed 函数,是这样的:
IsClosed  
public CATBoolean IsClosed( ) const=0  
  
Tests whether this CATCurve is periodic.  
This method does not take into account the current limitations of the curve.  
Returns:  
The result of the test.  
Legal values::  
0  
If the CATCurve is not periodic.  
1  
If the CATCurve is periodic.  
我用过了还是不行,不知道这里的periodic是什么意思




欢迎光临 iCAx开思工具箱 (https://t.icax.org/) Powered by Discuz! X3.3