mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-04-25 14:12:05 +05:00
EDF 2281: Dump fix
This commit is contained in:
parent
7032015c58
commit
da81e0e4a0
@ -48,7 +48,7 @@
|
|||||||
#include <GEOMImpl_DividedDiskDriver.hxx>
|
#include <GEOMImpl_DividedDiskDriver.hxx>
|
||||||
#include <GEOMImpl_IDividedDisk.hxx>
|
#include <GEOMImpl_IDividedDisk.hxx>
|
||||||
// #include <GEOMImpl_DividedCylinderDriver.hxx>
|
// #include <GEOMImpl_DividedCylinderDriver.hxx>
|
||||||
//#include <GEOMImpl_IDividedCylinder.hxx>
|
// #include <GEOMImpl_IDividedCylinder.hxx>
|
||||||
/*@@ insert new functions before this line @@ do not remove this line @@ do not remove this line @@*/
|
/*@@ insert new functions before this line @@ do not remove this line @@ do not remove this line @@*/
|
||||||
|
|
||||||
#include <TopExp.hxx>
|
#include <TopExp.hxx>
|
||||||
@ -2240,7 +2240,7 @@ GEOMImpl_IAdvancedOperations::MakePipeTShapeFilletWithPosition(double theR1, dou
|
|||||||
//=============================================================================
|
//=============================================================================
|
||||||
/*!
|
/*!
|
||||||
* This function allows to create a disk already divided into blocks. It can be
|
* This function allows to create a disk already divided into blocks. It can be
|
||||||
* use to create divided pipes for later meshing in hexaedra.
|
* used to create divided pipes for later meshing in hexaedra.
|
||||||
* \param theR Radius of the disk
|
* \param theR Radius of the disk
|
||||||
* \param theRatio Relative size of the central square diagonal against the disk diameter
|
* \param theRatio Relative size of the central square diagonal against the disk diameter
|
||||||
* \return New GEOM_Object, containing the created shape.
|
* \return New GEOM_Object, containing the created shape.
|
||||||
@ -2302,8 +2302,19 @@ Handle(GEOM_Object) GEOMImpl_IAdvancedOperations::MakeDividedCylinder (double th
|
|||||||
{
|
{
|
||||||
SetErrorCode(KO);
|
SetErrorCode(KO);
|
||||||
|
|
||||||
|
//Add a new object
|
||||||
|
Handle(GEOM_Object) aShape = GetEngine()->AddObject(GetDocID(), GEOM_DIVIDEDCYLINDER);
|
||||||
|
|
||||||
Handle(GEOM_Object) aBaseShape = MakeDividedDisk(theR, 50.0, 1);
|
Handle(GEOM_Object) aBaseShape = MakeDividedDisk(theR, 50.0, 1);
|
||||||
Handle(GEOM_Object) aShape = my3DPrimOperations->MakePrismDXDYDZ(aBaseShape,0.0,0.0,theH, -1.0);
|
aBaseShape->GetLastFunction()->SetDescription(""); // Erase dump of MakeDividedDisk
|
||||||
|
|
||||||
|
aShape = my3DPrimOperations->MakePrismDXDYDZ(aBaseShape,0.0,0.0,theH, -1.0);
|
||||||
|
|
||||||
|
Handle(GEOM_Function) aFunction = aShape->GetLastFunction();
|
||||||
|
aFunction->SetDescription(""); // Erase dump of MakePrismDXDYDZ
|
||||||
|
|
||||||
|
//Make a Python command
|
||||||
|
GEOM::TPythonDump(aFunction) << aShape << " = geompy.MakeDividedCylinder(" << theR << ", " << theH << ")";
|
||||||
|
|
||||||
SetErrorCode(OK);
|
SetErrorCode(OK);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user