
Fri, 02/19/2010 - 13:45
Forums:
Hi,
Is it possible to create an Interractive object, lets say a box which can be picked and selected, but is not drawn except as outlines when detected/selected?
Hi,
Is it possible to create an Interractive object, lets say a box which can be picked and selected, but is not drawn except as outlines when detected/selected?
Fri, 02/19/2010 - 13:47
reading the reference makes me smarter :)
Tha solution is:
m_Shp->SetDisplayMode(AIS_ExactHLR);
Thu, 03/25/2010 - 13:05
hi, Tilman and any one else
i come accross the same problem too.
what you said really working. but im not really understand what does AIS_ExactHLR mean.
however , when i tried AIS_Line but it failed.
can you(anyone) explain it with more detail?
thanks very much.
Thu, 03/25/2010 - 13:36
sorry,
it seems little funny.
i think it is not "m_Shp->SetDisplayMode(AIS_ExactHLR);" worked in my project but "myAISContext->setdisplaymode(m_shp,3,0)". i havent map any texture.
thanks
Thu, 03/25/2010 - 14:03
Hi,
Strange, indeed. "m_Shp->SetDisplayMode(AIS_ExactHLR);" works as i request.
I have to myAISContext->Redisplay the shape if it was already visible, though.
thank you for your input
Sat, 04/03/2010 - 02:40
It's cool options ! You're awesome. But how you know about this ???
And please ! You may help me with HLR options ! How I can hide lines for more that one shape !
Thank you !
Mon, 04/05/2010 - 12:32
hi Tilman:
really strange. can you post your code about hidden shapes here? i come across making invisible but selectable object.
it sucks that it doesn't work for me, so im thinking if i got something wrong in my code.
thanks very much.
Tue, 04/06/2010 - 09:54
it looks like this:
m_Shp = new AIS_Shape(myTopoDS_Solid);
m_Shp->SetDisplayMode(AIS_ExactHLR);
myAISContext->Display(m_Shp, false);
I just create myTOpoDS_Solid as a Prism with thickness 0.001, as i just need a Frame around a custom object of mine.
Tue, 04/06/2010 - 11:30
hi Tilman:
thanks,
i will try to get it work.
thanks very much!
Tue, 04/06/2010 - 11:34
hi Tilman,
really i come across another big problem, about edit topology of shapes such as move a vertex of any shape to another place, have you ever come across such problem or have some suggestion ? i have read some posts about this, such as the "edit topology" and "modify shape" topics, however i'm still not so clear about this.
thanks.
Tue, 04/06/2010 - 15:31
You will probably have to explore the shape you want to modify using the TopExp_Explorer-class, identify the vertices you want to modify and rebuild your shapes from these modified vertices using the builder api.
At least that's the way i would do it.
I do not know if it is possible to modify topology directly, but then i consider myself to be more of an amatuer in using occ than an expert.
Fri, 04/09/2010 - 12:10
hello Tilman:
i mean to do this, and i can edit a vertex on edge now, but cann't go further.
thats because the problem posted here :
http://www.opencascade.org/org/forum/thread_18351/
thanks very much for patience and suggestions about this.