明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 2324|回复: 4

[讨论] 如何非均匀变换?

[复制链接]
发表于 2013-5-25 16:16:20 | 显示全部楼层 |阅读模式
本帖最后由 highflybir 于 2013-5-25 16:23 编辑

哪些实体支持非均匀比例矩阵变换呢?看看下面的英文:
What entities support a non-uniform scale matrix?By Gopinath Taget
AutoCAD has a number of entity types and you might wonder which entities support non-uniform scaling.
As a general rule, the AutoCAD built-in entity classes for entity types that existed before R13 (such as AcDbCircle, AcDbLine, AcDbArc, AcDb2dPolyline, etc.) require that the transformation matrix represent a uniformly scaling orthogonal transformation (if it is not, then Acad::eCannotScaleNonUniformly will be returned). Other AutoCAD built-in classes typically does not have this restrictions.
Also, here is more specific information on commonly used AutoCAD entities:

The following are entities that have a scaling restriction: (以下是有比例限制的实体)

AcDb2dPolyine, AcDb3dPolyine, AcDbDimension and derived classes, AcDbArc, AcDbCircle, AcDbBlockReference, AcDbMInsert, AcDbFace, AcDbLine, AcDbPloyline, AcDbPoint, AcDbPoint, AcDbHatch, AcDbShape, AcDbText and derived classes, AcDbTrace, AcDbViewport, AcDbRegion, AcDb3dSolid, and AcDbBody.

The entities that support non-uniform scale matrix are: (支持非等比矩阵的实体是:)
AcDbLeader, AcDbMLine, AcDbMText, AcDbOle2Frame, AcDbPloyFaceMesh, AcDbPolygonMesh, AcDbRay, AcDbXline, AcDbFcf, AcDbSolid, AcDbEllipse, AcDbSpline, AcDbImage
http://bbs.xdcad.net/thread-668319-1-1.html

这个帖子里面提到了哪些可以实现非均匀比例变换。
对于哪些不可以的该怎么办?像单行文字或者填充

"觉得好,就打赏"
还没有人打赏,支持一下
发表于 2013-5-25 16:20:35 | 显示全部楼层
嘿嘿,占个地盘先,恭请老大公布
发表于 2013-5-26 20:10:08 | 显示全部楼层
这个是目前关于块的一个未知问题。
发表于 2013-5-26 20:18:33 | 显示全部楼层
对于不可以非均匀变换的对象,CAD是这样处理的,将对象变为无名块对象,然后再插入!所以我们要做非均匀比例变换,也只能采用这样的方法!

评分

参与人数 1明经币 +1 收起 理由
xinxirong + 1 很给力!

查看全部评分

发表于 2013-6-11 08:54:34 | 显示全部楼层
如果已知一个最终的变换矩阵.(经多次旋转.平移.不等比创缩放等操作).如何只根据最终的变换矩阵对实体进行三维变换.一直困扰我的问题.cad公司et工具里实现了就是未发布最新的源代码.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-11-18 21:28 , Processed in 0.204890 second(s), 31 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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