Thu, 08/27/2009 - 01:59
Forums:
Hi,
does anybody know how i can test if an TopoDs Shape, in this case a vertex is set?
TopoDS_Vertex vertex;
gp_Pnt casPoint = BRep_Tool::Pnt(vertex)
The vertex is not null but invalid - how can I check this before going on...?
Thanks Simon
Thu, 08/27/2009 - 06:00
TopoDS_Vertex vertex;
if(!vertex.IsNull())
gp_Pnt casPoint = BRep_Tool::Pnt(vertex);
Thu, 08/27/2009 - 09:07
Thanks!
and how can I handle the exception if I dont code the '!IsNull' case? I read something about exception handling in the manual but I dont find it anymore... perhaps somebody can tell me where to find it...
Regards
Simon
Thu, 08/27/2009 - 09:12
ok, I found it once again in the foundation classes pdf-file at page 29 :-)