找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 652|回复: 0

[求助]:为什么对三维物体的放大,旋转可以,但措切就不行呢

[复制链接]
发表于 2004-5-15 17:03:29 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?立即注册

×
re
我的代码是这样的,
#include "StdAfx.h"
#include "StdArx.h"



void tss()
{
        int i,j        ;                        // Row of ads_matrix
        ads_matrix xform;        // The transformation matrix
        ads_name ssGrp;                // The entities that make up transform SS
        int rc;                                // Return code
        ads_real d,s;                // Scale Factor


        // Select the entities
        acedPrompt("\nSelect enties to scale (transfrom) ");
        rc = acedSSGet(NULL, NULL, NULL, NULL, ssGrp);
        if(rc != RTNORM)
        {
                acutPrintf("\nEmpty or invalid selection set ");
                return;
        }

        // Input the scale factor
        acedInitGet(RSG_NONULL + RSG_NONEG + RSG_NOZERO, NULL);
        acedGetReal("\n请输入x对z的错切量 : ", &d);
        acedGetReal("\n请输入y对z的错切量: ", &s);

        // Initialize the matrix
        ident_init(xform);

        // Apply the scaling factor
        // to the matrix
        for(i = 0; i <= 3; i++)

                for(j = 0; j <= 3; j++)
                xform[j] = 0.0;

        xform[0][0] = 1.0;
        xform[1][1] = 1.0;
    xform[2][2] = 1.0;
        xform[2][0] = d;
        xform[2][1] = s;
       
       
        rc = acedXformSS(ssGrp, xform);
        if(rc != RTNORM)
        {
                acutPrintf("\n转换失败. ");
        }

        acedSSFree(ssGrp);       
}
最终还是转换失败,请各位帮忙
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|申请友链|Archiver|手机版|小黑屋|辽公网安备|晓东CAD家园 ( 辽ICP备15016793号 )

GMT+8, 2024-9-21 17:47 , Processed in 0.758780 second(s), 32 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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