mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-14 02:30:35 +05:00
0022353: EDF GEOM: Projection on a edge or a wire
This commit is contained in:
parent
ac1c738492
commit
483bcee37f
@ -382,16 +382,28 @@ GetCreationInformation(std::string& theOperationName,
|
|||||||
if (Label().IsNull()) return 0;
|
if (Label().IsNull()) return 0;
|
||||||
Handle(GEOM_Function) function = GEOM_Function::GetFunction(Label());
|
Handle(GEOM_Function) function = GEOM_Function::GetFunction(Label());
|
||||||
|
|
||||||
GEOMImpl_IMirror aCI( function );
|
|
||||||
Standard_Integer aType = function->GetType();
|
Standard_Integer aType = function->GetType();
|
||||||
|
|
||||||
theOperationName = "PROJECTION";
|
theOperationName = "PROJECTION";
|
||||||
|
|
||||||
switch ( aType ) {
|
switch ( aType ) {
|
||||||
case PROJECTION_COPY:
|
case PROJECTION_COPY:
|
||||||
AddParam( theParams, "Source object", aCI.GetOriginal() );
|
{
|
||||||
AddParam( theParams, "Target face", aCI.GetPlane() );
|
GEOMImpl_IMirror aCI( function );
|
||||||
break;
|
|
||||||
|
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:
|
default:
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user