Scalling drawing with transformBy

Scalling drawing with transformBy

natuanmdc
Participant Participant
317 Views
2 Replies
Message 1 of 3

Scalling drawing with transformBy

natuanmdc
Participant
Participant

Hi everyone

I'm trying to scalling my drawing which combined by 2D entities et 3D entities (3d points), if i use command

 

acEnt.TransformBy(Matrix3d.Scaling(param_k,Point3d.Origin));

 

it will change the Z valeur of these 3D entities.

Do you have a solution for this problem please?

Thanks a lots

0 Likes
318 Views
2 Replies
Replies (2)
Message 2 of 3

Alexander.Rivilis
Mentor
Mentor

In order to preserve Z-coordinate you have to move entity after scaling.

Other way is pass instead of Point3d.Origin other point, which will not affected with scaling.

Відповідь корисна? Клікніть на "ВПОДОБАЙКУ" цім повідомленням! | Do you find the posts helpful? "LIKE" these posts!
Находите сообщения полезными? Поставьте "НРАВИТСЯ" этим сообщениям!
На ваше запитання відповіли? Натисніть кнопку "ПРИЙНЯТИ РІШЕННЯ" | Have your question been answered successfully? Click "ACCEPT SOLUTION" button.
На ваш вопрос успешно ответили? Нажмите кнопку "УТВЕРДИТЬ РЕШЕНИЕ"


Alexander Rivilis / Александр Ривилис / Олександр Рівіліс
Programmer & Teacher & Helper / Программист - Учитель - Помощник / Програміст - вчитель - помічник
Facebook | Twitter | LinkedIn
Expert Elite Member

0 Likes
Message 3 of 3

natuanmdc
Participant
Participant

Thank you for your answer but when the drawing was changed the scale of Z with the factor, there is no constant to move the drawing to the Z origin value.

 

0 Likes