乐筑天下

搜索
欢迎各位开发者和用户入驻本平台 尊重版权,从我做起,拒绝盗版,拒绝倒卖 签到、发布资源、邀请好友注册,可以获得银币 请注意保管好自己的密码,避免账户资金被盗
查看: 38|回复: 2

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

[复制链接]

4

主题

17

帖子

2

银币

初来乍到

Rank: 1

铜币
33
发表于 2006-8-28 15:12:00 | 显示全部楼层 |阅读模式
ARX求两条曲线的交点有什么方法,用到哪些类?请帮忙,谢谢!

另,高手提示一下“拷贝”,旋转,镜像,剪切等要用到哪些函数,用到哪些类?
给点提示吧,高手不要一来就让看帮助。没有眉目,不知道从哪里下手。期待中......
回复

使用道具 举报

1

主题

24

帖子

3

银币

初来乍到

Rank: 1

铜币
28
发表于 2006-8-29 17:30:00 | 显示全部楼层
买本计算机图形学看看,或者在网上找找
回复

使用道具 举报

2

主题

54

帖子

3

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
62
发表于 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命令
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

QQ|关于我们|小黑屋|乐筑天下 繁体中文

GMT+8, 2025-2-5 20:53 , Processed in 0.194036 second(s), 58 queries .

© 2020-2025 乐筑天下

联系客服 关注微信 帮助中心 下载APP 返回顶部 返回列表