Thank you i'm sorry it's a stupid error.
But when i select the circle an error is generated at line :
TopoDS_Shape m_selectShape = context->SelectedShape();
Have you an idea ?
Thank you already i can compile and execute, i have a question : when i select my circle i have just 3/4 of circle selectionned and that's why what my function does not identify a circle.
Tue, 06/16/2009 - 14:01
If you are sure that the selection is an edge...
BRepAdaptor_Curve adaptor(TopoDS::Edge(m_selectShape));
if ( adaptor.GetType() == GeomAbs_Circle )
{
...
}
Tue, 06/16/2009 - 15:30
I've tried it but i have an error at the function "BrepAdaptor_Curve" : TopoDS isn't a class...
Tue, 06/16/2009 - 16:30
#include ?
Tue, 06/16/2009 - 18:31
Thank you i'm sorry it's a stupid error.
But when i select the circle an error is generated at line :
TopoDS_Shape m_selectShape = context->SelectedShape();
Have you an idea ?
Thank you for your help
Thu, 06/18/2009 - 09:43
Try it like this:
context->InitSelected();
if (context->MoreSelected() && context->HasSelectedShape())
{
TopoDS_Shape m_selectShape = context->SelectedShape();
// ...
}
Thu, 06/18/2009 - 10:21
Thank you already i can compile and execute, i have a question : when i select my circle i have just 3/4 of circle selectionned and that's why what my function does not identify a circle.
Thu, 06/18/2009 - 10:45
Do not take into account the previous message, it works very well.
On the other hand I have a small problem, my messagebox appears and disappears at once.