Sphere

Sphere

Anonymous
Not applicable
747 Views
3 Replies
Message 1 of 4

Sphere

Anonymous
Not applicable

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

0 Likes
Accepted solutions (1)
748 Views
3 Replies
Replies (3)
Message 2 of 4

Alexander.Rivilis
Mentor
Mentor
Accepted solution
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
Not applicable

Thanks.

It really worked..

0 Likes
Message 4 of 4

Anonymous
Not applicable

now I want to add events on it.

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

0 Likes