找回密码 注册 QQ登录
开思网工业级高精度在线3D打印服务

iCAx开思网

CAD/CAM/CAE/设计/模具 高清视频【积分说明】如何快速获得积分?快速3D打印 手板模型CNC加工服务在线3D打印服务,上传模型,自动报价
12
返回列表 发新帖
打印 上一主题 下一主题

CAA中关于圆的一个问题

[复制链接]
11
发表于 2005-7-2 17:03:08 | 只看该作者
CATEdgeCurve可以得到算式,自己分析?
  
正如nctusdk所说,你做交叉形状出来的曲线,一般得不到圆的,catia还没有那么智能
  
你可以把agent的对象改CATCirle看看
  
做CAD开发的时候,有些事很难做到,强求它了话,最后肯定在那里出现逻辑错误。所以写设计书的工资比写程序的高,但也经常被写程序的骂。如同画设计图纸的被技工骂一样
12
发表于 2005-7-2 17:37:46 | 只看该作者
CATIMeasurableCurve::GetPoints ()可以得到任意曲线上的3个点,根据3个点就可以分辨出一个曲线到底是直线还是圆了,也可以计算出圆的半径了,不过就是有点麻烦,看来只好这样了。
谢谢两位高手了
:)
13
发表于 2005-7-3 10:06:02 | 只看该作者
CAA中应该有查询曲线类型的函数,你先确定你截到的曲线是圆锥曲线还是样条曲线。
  
我觉得你截到的线,里面应该没有圆弧这样的二次曲线成分。那些曲线段,都是自由曲线,有圆弧的地方,是自由曲线逼近了圆弧的形状。
  
所以你要想从自由曲线上提取圆弧信息,只能采用试探。按照参数前进的次序计算曲线上对应点的曲率半径,设定一个阈值,如果曲线上的点许多次的曲率半径的变动偏差都落在在这个阈值内,就可以认为它是圆弧。
14
发表于 2005-7-3 10:07:57 | 只看该作者
呵呵,原来问题已经解决了啊
15
发表于 2005-7-3 10:14:11 | 只看该作者
谢谢键盘兄的建议,确实在交叉特征里面找不到圆弧,我就只好采用了笨办法去计算,不过也能解决问题。
:)
16
发表于 2005-7-3 13:44:47 | 只看该作者
的确是高手
caa一样对图形元素有类型的判断函数
  
CATICGMUnknown
  IsATypeOf(CATGeometricType)
Parameters:  
CATGeometryType  
The generic type.  
CATCurveType  
The Curve type.  
CATConicType  
The Conic type.  
CATCircleType  
The Circle type.  
CATEllipseType  
The Ellipse type.  
CATEdgeCurveType  
The EdgeCurve type.  
CATIntCurveType  
The IntCurve type.  
CATLineType  
The line type.  
CATNurbsCurveType  
The Curve type.  
CATCurveType  
The Nurbs curve type.  
CATPCurveType  
The PCurve type.  
CATPCircleType  
The PCircle type.  
CATPEllipseType  
The PEllipse type.  
CATPParabolaType  
The Curve type.  
CATCurveType  
The PParabola type.  
CATPHyperbolaType  
The PHyperbola type.  
CATPLineType  
The Pline type.  
CATPNurbsType  
The PNurbs type.  
CATIForeignPCurveType  
The foreign Pcurve type.  
CATPSplineType  
The PSpline type.  
CATSplineCurveType  
The Splinecurve type.  
CATIForeignCurveType  
The foreign curve type.  
CATProcCurveType  
The ProcCurve type.  
CATPointType  
The point type.  
CATCartesianPointType  
The cartesian point type.  
CATMacroPointType  
The macro point type.  
CATPointOnCurveType  
The point on curve type.  
CATPointOnSurfaceType  
The point on surface type.  
CATPointOnEdgeCurveType  
The point on edge curve type.  
CATSurfaceType  
The surface type.  
CATElementarySurfaceType  
The elementary surface type.  
CATCylinderType  
The cylinder type.  
CATSphereType  
The sphere type.  
CATTorusType  
The torus type.  
CATConeType  
The cone type.  
CATNurbsSurfaceType  
The Nurbs surface type.  
CATPlaneType  
The plane type.  
CATRevolutionSurfaceType  
The revolution surface type.  
CATTabulatedCylinderType  
The tabulated cylinder type.  
CATOffsetSurfaceType  
The offset surface type.  
CATIForeignSurfaceType  
The foreign surface type.  
CATBodyType  
The body type.  
CATCellType  
The cell type.  
CATEdgeType  
The edge type.  
CATFaceType  
The face type.  
CATVertexType  
The vertex type.  
CATVolumeType  
The volume type.  
CATDomainType  
The domain type.  
CATLoopType  
The loop type.  
CATLumpType  
The lump type.  
CATShellType  
The shell type.  
CATVertexInFaceType  
The vertex in face type.  
CATVertexInVolumeType  
The vertex in volume type.  
CATWireType  
The wire type.  
CATLawType  
The law type.  
CATLinearLawType  
The linear law type.  
CATConstantLawType  
The constant law type.  
CATSplineLawType  
The spline law type.  
CATSubdivMeshType  
The subdivision mesh type  
  
caa的开发自由度比较大,所以api的说明资料也就不是那么详细,很多要自己扣,自己试,
您需要登录后才可以回帖 登录 | 注册

本版积分规则

3D打印手板模型快速制作服务,在线报价下单!

QQ 咨询|手机版|联系我们|iCAx开思网  

GMT+8, 2025-2-26 02:38 , Processed in 0.020174 second(s), 9 queries , Gzip On, Redis On.

Powered by Discuz! X3.3

© 2002-2025 www.iCAx.org

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