ManipExport void SimpleManipulator::GetLocalBoundBox
ManipExport void SimpleManipulator::GetWorldBoundBox
Why this two functions always return wrong number for me?
for GetLocalBoundBox Min() and Max() are always 0
in the return of GetWorldBoundBox ,min and max are always the same ?
void RingMenuTest::GenerateShapes(TimeValue t)
{
Point3 Position(0,0,0);
Matrix3 aTM;
Interface *ip = GetCOREInterface();
Box3 boundingBox;
float length,size1,size2;
ViewExp *ve = ip->GetActiveViewport();
GetLocalBoundBox(t, GetINode(), ve, boundingBox );------here
ve->GetAffineTM(aTM);
ip->ReleaseViewport(ve);
....
boundingBox.Min() and boundingBox.Max() are always 0 point.
system
June 10, 2009, 6:52pm
3
本公司是一家集Internet网站建设,[b]北京网页设计公司[/b] 信息收集传播,宣传企业文化,[b]北京网页设计[/b] 软件开发为一体的信息技术开发公司。 本公司致力于政府、企业、学校的系列解决方案。并承接各种软件、网站项目的制作和维护。 从98年发展至今,[b]网站建设公司[/b] 本公司已经发展成一个拥有高学历、高素质的30余人的开发团队。[b]网站设计公司[/b] 本团队人员来自国内各大高校,[b]网页建设公司[/b] 平均开发经验1年以上。我们经过几年的运作已经积累了一定的经验。从项目的确立,到项目的执行都有严格的项目标准来规范。
mpINode->GetObjectRef()->GetLocalBoundBox(t,mpINode,ve,boundingBox);
worked, but still do not know why?
system
June 11, 2009, 1:52am
5
[QUOTE=Hua*MuLan~;3784]
void RingMenuTest::GenerateShapes(TimeValue t)
{
Point3 Position(0,0,0);
Matrix3 aTM;
Interface *ip = GetCOREInterface();
Box3 boundingBox;
float length,size1,size2;
ViewExp *ve = ip->GetActiveViewport();
GetLocalBoundBox(t, GetINode(), ve, boundingBox );------here
ve->GetAffineTM(aTM);
ip->ReleaseViewport(ve);
....
boundingBox.Min() and boundingBox.Max() are always 0 point.[/QUOTE]
:?:
It depends on the difinition of GetLocalBoundBox in your class RingMenuTest.
You should implement this member function in your class.
The function with the same name in MaxSDK should be used as
GetINode()->GetObjectRef()->GetLocalBoundBox(t,GetINode(),ve,boundingBox);