From: skv Date: Tue, 29 Oct 2013 06:52:17 +0000 (+0000) Subject: 0022353: EDF GEOM: Projection on a edge or a wire X-Git-Tag: BR_hydro_v_0_3_1~62 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=483bcee37fe235bfa2e8598677bda58fc99d78ae;p=modules%2Fgeom.git 0022353: EDF GEOM: Projection on a edge or a wire --- diff --git a/src/GEOMImpl/GEOMImpl_ProjectionDriver.cxx b/src/GEOMImpl/GEOMImpl_ProjectionDriver.cxx index eeb87d09f..ebc0843ed 100644 --- a/src/GEOMImpl/GEOMImpl_ProjectionDriver.cxx +++ b/src/GEOMImpl/GEOMImpl_ProjectionDriver.cxx @@ -382,16 +382,28 @@ GetCreationInformation(std::string& theOperationName, if (Label().IsNull()) return 0; Handle(GEOM_Function) function = GEOM_Function::GetFunction(Label()); - GEOMImpl_IMirror aCI( function ); Standard_Integer aType = function->GetType(); theOperationName = "PROJECTION"; switch ( aType ) { case PROJECTION_COPY: - AddParam( theParams, "Source object", aCI.GetOriginal() ); - AddParam( theParams, "Target face", aCI.GetPlane() ); - break; + { + GEOMImpl_IMirror aCI( function ); + + AddParam( theParams, "Source object", aCI.GetOriginal() ); + AddParam( theParams, "Target face", aCI.GetPlane() ); + break; + } + case PROJECTION_ON_WIRE: + { + GEOMImpl_IProjection aProj (function); + + AddParam(theParams, "Point", aProj.GetPoint()); + AddParam(theParams, "Shape", aProj.GetShape()); + + break; + } default: return false; }