static Handle(Image_AlienPixMap) MyPixMap;
SketcherPrs_Tangent::SketcherPrs_Tangent(ModelAPI_Feature* theConstraint,
- ModelAPI_CompositeFeature* theSketcher,
- const std::shared_ptr<GeomAPI_Ax3>& thePlane)
- : SketcherPrs_SymbolPrs(theConstraint, theSketcher, thePlane)
+ SketchPlugin_Sketch* theSketcher)
+ : SketcherPrs_SymbolPrs(theConstraint, theSketcher)
{
}
GeomPointPtr aPnt;
GeomShapePtr aIntPnt = aShp1->intersect(aShp2);
- if (aIntPnt->isVertex()) {
+ if (aIntPnt.get() && aIntPnt->isVertex()) {
GeomVertexPtr aVetrex(new GeomAPI_Vertex(aIntPnt));
aPnt = aVetrex->point();
}