明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 2127|回复: 2

[求助]求两条曲线的交点

[复制链接]
发表于 2006-8-28 15:12:00 | 显示全部楼层 |阅读模式

ARX求两条曲线的交点有什么方法,用到哪些类?请帮忙,谢谢!


另,高手提示一下“拷贝”,旋转,镜像,剪切等要用到哪些函数,用到哪些类?

给点提示吧,高手不要一来就让看帮助。没有眉目,不知道从哪里下手。期待中......

发表于 2006-8-29 17:30:00 | 显示全部楼层

买本计算机图形学看看,或者在网上找找

发表于 2006-8-30 14:34:00 | 显示全部楼层

virtual Acad::ErrorStatus

AcDbEntity::intersectWith(

const AcDbEntity* pEnt,

AcDb::Intersect intType,

AcGePoint3dArray& points,

int thisGsMarker = 0,

int otherGsMarker = 0) const;

pEnt      Input entity with which "this" entity is to intersect

intType   Input type of intersection requested

points    Output with the points of intersection appended

thisGsMarker Input GS marker of subentity of "this" entity that's involved in the intersection operation. Use the 0 default if not applicable.

otherGsMarker Input GS marker of subentity of the entity pointed to by pEnt that's involved in the intersection operation. Use the 0 default if not applicable.

使用这个函数可以求得任意两个图元的所有交点。详情见SDK文档

拷贝,镜像使用getTransformedCopy():

virtual Acad::ErrorStatus
getTransformedCopy(
const AcGeMatrix3d& xform,
AcDbEntity*& pEnt) const;

xform是这个图元的变化矩阵,详情见SDK文档AcGeMatrix3d条目

第二个参数是一个指针,在你使用这个函数的时候,必须给它一个空的指针变量,它将地址返回给你的变量:

旋转使用AcDbEntity::transformBy函数:

virtual Acad::ErrorStatus
transformBy(
const AcGeMatrix3d& xform);

xform是变换矩阵

剪切只能使用trim命令

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-2-23 23:46 , Processed in 0.200614 second(s), 23 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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