ObjectARX
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Sphere

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
Anonymous
596 Views, 3 Replies

Sphere

AcDb3dSolid* lSphere=new AcDb3dSolid();

lSphere->createSphere(30);

 

I have created sphere. But it is at origin.

 

I want to draw sphere at location (10,10,10).

 

help with piece of code.

 

tnx

3 REPLIES 3
Message 2 of 4
Alexander.Rivilis
in reply to: Anonymous

AcGeMatrix3d mat;
mat.setToTranslation(AcGeVector3d(10,10,10));
lSphere->transformBy(mat);

 

Відповідь корисна? Клікніть на "ВПОДОБАЙКУ" цім повідомленням! | 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

Message 3 of 4
Anonymous
in reply to: Alexander.Rivilis

Thanks.

It really worked..

Message 4 of 4
Anonymous
in reply to: Alexander.Rivilis

now I want to add events on it.

Like when I click on it some function should me fired.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost