OCC.BRepGProp module

class OCC.BRepGProp.BRepGProp_Cinert(*args)

Bases: OCC.GProp.GProp_GProps

Perform()
Parameters:C (BRepAdaptor_Curve &) –
Return type:None
SetLocation()
Parameters:CLocation (gp_Pnt) –
Return type:None
thisown

The membership flag

class OCC.BRepGProp.BRepGProp_Domain(*args)

Bases: object

Init()
  • Initializes the domain with the face.
Parameters:F (TopoDS_Face &) –
Return type:None
  • Initializes the exploration with the face already set.
Return type:None
More()
  • Returns True if there is another arc of curve in the list.
Return type:bool
Next()
  • Sets the index of the arc iterator to the next arc of curve.
Return type:None
Value()
  • Returns the current edge.
Return type:TopoDS_Edge
thisown

The membership flag

class OCC.BRepGProp.BRepGProp_EdgeTool(*args, **kwargs)

Bases: object

static D1(*args)
  • Returns the point of parameter U and the first derivative at this point.
Parameters:
  • C (BRepAdaptor_Curve &) –
  • U (float) –
  • P (gp_Pnt) –
  • V1 (gp_Vec) –
Return type:

void

static FirstParameter(*args)
  • Returns the parametric value of the start point of the curve. The curve is oriented from the start point to the end point.
Parameters:C (BRepAdaptor_Curve &) –
Return type:float
static IntegrationOrder(*args)
  • Returns the number of Gauss points required to do the integration with a good accuracy using the Gauss method. For a polynomial curve of degree n the maxima of accuracy is obtained with an order of integration equal to 2*n-1.
Parameters:C (BRepAdaptor_Curve &) –
Return type:int
static Intervals(*args)
  • Stores in <T> the parameters bounding the intervals of continuity <S>. The array must provide enough room to accomodate for the parameters. i.e. T.Length() > NbIntervals()
Parameters:
  • C (BRepAdaptor_Curve &) –
  • T (TColStd_Array1OfReal &) –
  • S (GeomAbs_Shape) –
Return type:

void

static LastParameter(*args)
  • Returns the parametric value of the end point of the curve. The curve is oriented from the start point to the end point.
Parameters:C (BRepAdaptor_Curve &) –
Return type:float
static NbIntervals(*args)
  • Returns the number of intervals for continuity <S>. May be one if Continuity(me) >= <S>
Parameters:
  • C (BRepAdaptor_Curve &) –
  • S (GeomAbs_Shape) –
Return type:

int

static Value(*args)
  • Returns the point of parameter U on the loaded curve.
Parameters:
  • C (BRepAdaptor_Curve &) –
  • U (float) –
Return type:

gp_Pnt

thisown

The membership flag

OCC.BRepGProp.BRepGProp_EdgeTool_D1(*args)
  • Returns the point of parameter U and the first derivative at this point.
Parameters:
  • C (BRepAdaptor_Curve &) –
  • U (float) –
  • P (gp_Pnt) –
  • V1 (gp_Vec) –
Return type:

void

OCC.BRepGProp.BRepGProp_EdgeTool_FirstParameter(*args)
  • Returns the parametric value of the start point of the curve. The curve is oriented from the start point to the end point.
Parameters:C (BRepAdaptor_Curve &) –
Return type:float
OCC.BRepGProp.BRepGProp_EdgeTool_IntegrationOrder(*args)
  • Returns the number of Gauss points required to do the integration with a good accuracy using the Gauss method. For a polynomial curve of degree n the maxima of accuracy is obtained with an order of integration equal to 2*n-1.
Parameters:C (BRepAdaptor_Curve &) –
Return type:int
OCC.BRepGProp.BRepGProp_EdgeTool_Intervals(*args)
  • Stores in <T> the parameters bounding the intervals of continuity <S>. The array must provide enough room to accomodate for the parameters. i.e. T.Length() > NbIntervals()
Parameters:
  • C (BRepAdaptor_Curve &) –
  • T (TColStd_Array1OfReal &) –
  • S (GeomAbs_Shape) –
Return type:

void

OCC.BRepGProp.BRepGProp_EdgeTool_LastParameter(*args)
  • Returns the parametric value of the end point of the curve. The curve is oriented from the start point to the end point.
Parameters:C (BRepAdaptor_Curve &) –
Return type:float
OCC.BRepGProp.BRepGProp_EdgeTool_NbIntervals(*args)
  • Returns the number of intervals for continuity <S>. May be one if Continuity(me) >= <S>
Parameters:
  • C (BRepAdaptor_Curve &) –
  • S (GeomAbs_Shape) –
Return type:

int

OCC.BRepGProp.BRepGProp_EdgeTool_Value(*args)
  • Returns the point of parameter U on the loaded curve.
Parameters:
  • C (BRepAdaptor_Curve &) –
  • U (float) –
Return type:

gp_Pnt

class OCC.BRepGProp.BRepGProp_Face(*args)

Bases: object

Bounds()
  • Returns the parametric bounds of the Face.
Parameters:
  • U1 (float &) –
  • U2 (float &) –
  • V1 (float &) –
  • V2 (float &) –
Return type:

None

D12d()
  • Returns the point of parameter U and the first derivative at this point of a boundary curve.
Parameters:
  • U (float) –
  • P (gp_Pnt2d) –
  • V1 (gp_Vec2d) –
Return type:

None

FirstParameter()
  • Returns the parametric value of the start point of the current arc of curve.
Return type:float
GetTKnots()
  • Returns an array of combination of T knots of the arc and V knots of the face. The first and last elements of the array will be theTMin and theTMax. The middle elements will be the Knots of the arc and the values of parameters of arc on which the value points have V coordinates close to V knots of face. All the parameter will be greater then theTMin and lower then theTMax in increasing order. If the face is not a BSpline, the array initialized with theTMin and theTMax only.
Parameters:
  • theTMin (float) –
  • theTMax (float) –
  • theTKnots (Handle_TColStd_HArray1OfReal &) –
Return type:

None

GetUKnots()
  • Returns an array of U knots of the face. The first and last elements of the array will be theUMin and theUMax. The middle elements will be the U Knots of the face greater then theUMin and lower then theUMax in increasing order. If the face is not a BSpline, the array initialized with theUMin and theUMax only.
Parameters:
  • theUMin (float) –
  • theUMax (float) –
  • theUKnots (Handle_TColStd_HArray1OfReal &) –
Return type:

None

IntegrationOrder()
  • Returns the number of points required to do the integration along the parameter of curve.
Return type:int
LIntOrder()
Parameters:Eps (float) –
Return type:int
LIntSubs()
Return type:int
LKnots()
Parameters:Knots (TColStd_Array1OfReal &) –
Return type:None
LastParameter()
  • Returns the parametric value of the end point of the current arc of curve.
Return type:float
Load()
Parameters:F (TopoDS_Face &) –
Return type:None
  • Loading the boundary arc.
Parameters:E (TopoDS_Edge &) –
Return type:None
  • Loading the boundary arc. This arc is either a top, bottom, left or right bound of a UV rectangle in which the parameters of surface are defined. If IsFirstParam is equal to Standard_True, the face is initialized by either left of bottom bound. Otherwise it is initialized by the top or right one. If theIsoType is equal to GeomAbs_IsoU, the face is initialized with either left or right bound. Otherwise - with either top or bottom one.
Parameters:
  • IsFirstParam (bool) –
  • theIsoType (GeomAbs_IsoType) –
Return type:

None

NaturalRestriction()
  • Returns Standard_True if the face is not trimmed.
Return type:bool
Normal()
  • Computes the point of parameter U, V on the Face <S> and the normal to the face at this point.
Parameters:
  • U (float) –
  • V (float) –
  • P (gp_Pnt) –
  • VNor (gp_Vec) –
Return type:

None

SIntOrder()
Parameters:Eps (float) –
Return type:int
SUIntSubs()
Return type:int
SVIntSubs()
Return type:int
UIntegrationOrder()
  • Returns the number of points required to do the integration in the U parametric direction with a good accuracy.
Return type:int
UKnots()
Parameters:Knots (TColStd_Array1OfReal &) –
Return type:None
VIntegrationOrder()
Return type:int
VKnots()
Parameters:Knots (TColStd_Array1OfReal &) –
Return type:None
Value2d()
  • Returns the value of the boundary curve of the face.
Parameters:U (float) –
Return type:gp_Pnt2d
thisown

The membership flag

class OCC.BRepGProp.BRepGProp_Sinert(*args)

Bases: OCC.GProp.GProp_GProps

GetEpsilon()
Return type:float
Perform()
Parameters:
  • S (BRepGProp_Face &) –
  • S
  • D (BRepGProp_Domain &) –
  • S
  • Eps (float) –
  • S
  • D
  • Eps
Return type:

None

Return type:

None

Return type:

float

Return type:

float

SetLocation()
Parameters:SLocation (gp_Pnt) –
Return type:None
thisown

The membership flag

class OCC.BRepGProp.BRepGProp_TFunctionOfVinertGK(*args)

Bases: object

AbsolutError()
Return type:float
ErrorReached()
Return type:float
GetStateNumber()
Return type:int
Init()
Return type:None
SetNbKronrodPoints()
Parameters:theNbPoints (Standard_Integer) –
Return type:None
SetTolerance()
Parameters:aTol (float) –
Return type:None
SetValueType()
Parameters:aType (GProp_ValueType) –
Return type:None
Value()
Parameters:
  • X (float) –
  • F (float &) –
Return type:

bool

thisown

The membership flag

class OCC.BRepGProp.BRepGProp_UFunctionOfVinertGK(*args)

Bases: object

SetVParam()
Parameters:theVParam (float) –
Return type:None
SetValueType()
Parameters:theType (GProp_ValueType) –
Return type:None
Value()
Parameters:
  • X (float) –
  • F (float &) –
Return type:

bool

thisown

The membership flag

class OCC.BRepGProp.BRepGProp_Vinert(*args)

Bases: OCC.GProp.GProp_GProps

GetEpsilon()
Return type:float
Perform()
Parameters:
  • S (BRepGProp_Face &) –
  • S
  • Eps (float) –
  • S
  • O (gp_Pnt) –
  • S
  • O
  • Eps
  • S
  • Pl (gp_Pln) –
  • S
  • Pl
  • Eps
  • S
  • D (BRepGProp_Domain &) –
  • S
  • D
  • Eps
  • S
  • D
  • O
  • S
  • D
  • O
  • Eps
  • S
  • D
  • Pl
  • S
  • D
  • Pl
  • Eps
Return type:

None

Return type:

float

Return type:

None

Return type:

float

Return type:

None

Return type:

float

Return type:

None

Return type:

float

Return type:

None

Return type:

float

Return type:

None

Return type:

float

SetLocation()
Parameters:VLocation (gp_Pnt) –
Return type:None
thisown

The membership flag

class OCC.BRepGProp.BRepGProp_VinertGK(*args)

Bases: OCC.GProp.GProp_GProps

GetErrorReached()
Return type:float
Perform()
Parameters:
  • theSurface (BRepGProp_Face &) –
  • theTolerance (float) – default value is 0.001
  • theCGFlag (bool) – default value is Standard_False
  • theIFlag (bool) – default value is Standard_False
  • theSurface
  • theTolerance – default value is 0.001
  • theCGFlag – default value is Standard_False
  • theIFlag – default value is Standard_False
  • theSurface
  • theTolerance – default value is 0.001
  • theCGFlag – default value is Standard_False
  • theIFlag – default value is Standard_False
  • theSurface
  • theTolerance – default value is 0.001
  • theCGFlag – default value is Standard_False
  • theIFlag – default value is Standard_False
  • theSurface
  • thePoint (gp_Pnt) –
  • theTolerance – default value is 0.001
  • theCGFlag – default value is Standard_False
  • theIFlag – default value is Standard_False
  • theSurface
  • thePoint
  • theTolerance – default value is 0.001
  • theCGFlag – default value is Standard_False
  • theIFlag – default value is Standard_False
  • theSurface
  • thePoint
  • theTolerance – default value is 0.001
  • theCGFlag – default value is Standard_False
  • theIFlag – default value is Standard_False
  • theSurface
  • thePoint
  • theTolerance – default value is 0.001
  • theCGFlag – default value is Standard_False
  • theIFlag – default value is Standard_False
  • theSurface
  • theDomain (BRepGProp_Domain &) –
  • theTolerance – default value is 0.001
  • theCGFlag – default value is Standard_False
  • theIFlag – default value is Standard_False
  • theSurface
  • theDomain
  • theTolerance – default value is 0.001
  • theCGFlag – default value is Standard_False
  • theIFlag – default value is Standard_False
  • theSurface
  • theDomain
  • theTolerance – default value is 0.001
  • theCGFlag – default value is Standard_False
  • theIFlag – default value is Standard_False
  • theSurface
  • theDomain
  • theTolerance – default value is 0.001
  • theCGFlag – default value is Standard_False
  • theIFlag – default value is Standard_False
  • theSurface
  • theDomain
  • thePoint
  • theTolerance – default value is 0.001
  • theCGFlag – default value is Standard_False
  • theIFlag – default value is Standard_False
  • theSurface
  • theDomain
  • thePoint
  • theTolerance – default value is 0.001
  • theCGFlag – default value is Standard_False
  • theIFlag – default value is Standard_False
  • theSurface
  • theDomain
  • thePoint
  • theTolerance – default value is 0.001
  • theCGFlag – default value is Standard_False
  • theIFlag – default value is Standard_False
  • theSurface
  • theDomain
  • thePoint
  • theTolerance – default value is 0.001
  • theCGFlag – default value is Standard_False
  • theIFlag – default value is Standard_False
  • theSurface
  • thePlane (gp_Pln) –
  • theTolerance – default value is 0.001
  • theCGFlag – default value is Standard_False
  • theIFlag – default value is Standard_False
  • theSurface
  • thePlane
  • theTolerance – default value is 0.001
  • theCGFlag – default value is Standard_False
  • theIFlag – default value is Standard_False
  • theSurface
  • thePlane
  • theTolerance – default value is 0.001
  • theCGFlag – default value is Standard_False
  • theIFlag – default value is Standard_False
  • theSurface
  • thePlane
  • theTolerance – default value is 0.001
  • theCGFlag – default value is Standard_False
  • theIFlag – default value is Standard_False
  • theSurface
  • theDomain
  • thePlane
  • theTolerance – default value is 0.001
  • theCGFlag – default value is Standard_False
  • theIFlag – default value is Standard_False
  • theSurface
  • theDomain
  • thePlane
  • theTolerance – default value is 0.001
  • theCGFlag – default value is Standard_False
  • theIFlag – default value is Standard_False
  • theSurface
  • theDomain
  • thePlane
  • theTolerance – default value is 0.001
  • theCGFlag – default value is Standard_False
  • theIFlag – default value is Standard_False
  • theSurface
  • theDomain
  • thePlane
  • theTolerance – default value is 0.001
  • theCGFlag – default value is Standard_False
  • theIFlag – default value is Standard_False
Return type:

float

Return type:

float

Return type:

float

Return type:

float

Return type:

float

Return type:

float

Return type:

float

Return type:

float

Return type:

float

Return type:

float

Return type:

float

Return type:

float

Return type:

float

Return type:

float

Return type:

float

Return type:

float

Return type:

float

Return type:

float

Return type:

float

Return type:

float

Return type:

float

Return type:

float

Return type:

float

Return type:

float

SetLocation()
Parameters:theLocation (gp_Pnt) –
Return type:None
thisown

The membership flag

class OCC.BRepGProp.SwigPyIterator(*args, **kwargs)

Bases: object

advance()
copy()
decr()
distance()
equal()
incr()
next()
previous()
thisown

The membership flag

value()
class OCC.BRepGProp.brepgprop(*args, **kwargs)

Bases: object

static LinearProperties(*args)
  • Computes the linear global properties of the shape S, i.e. the global properties induced by each edge of the shape S, and brings them together with the global properties still retained by the framework LProps. If the current system of LProps was empty, its global properties become equal to the linear global properties of S. For this computation no linear density is attached to the edges. So, for example, the added mass corresponds to the sum of the lengths of the edges of S. The density of the composed systems, i.e. that of each component of the current system of LProps, and that of S which is considered to be equal to 1, must be coherent. Note that this coherence cannot be checked. You are advised to use a separate framework for each density, and then to bring these frameworks together into a global one. The point relative to which the inertia of the system is computed is the reference point of the framework LProps. Note: if your programming ensures that the framework LProps retains only linear global properties (brought together for example, by the function LinearProperties) for objects the density of which is equal to 1 (or is not defined), the function Mass will return the total length of edges of the system analysed by LProps. Warning No check is performed to verify that the shape S retains truly linear properties. If S is simply a vertex, it is not considered to present any additional global properties.
Parameters:
  • S (TopoDS_Shape &) –
  • LProps (GProp_GProps &) –
Return type:

void

static SurfaceProperties(*args)
  • Computes the surface global properties of the shape S, i.e. the global properties induced by each face of the shape S, and brings them together with the global properties still retained by the framework SProps. If the current system of SProps was empty, its global properties become equal to the surface global properties of S. For this computation, no surface density is attached to the faces. Consequently, the added mass corresponds to the sum of the areas of the faces of S. The density of the component systems, i.e. that of each component of the current system of SProps, and that of S which is considered to be equal to 1, must be coherent. Note that this coherence cannot be checked. You are advised to use a framework for each different value of density, and then to bring these frameworks together into a global one. The point relative to which the inertia of the system is computed is the reference point of the framework SProps. Note : if your programming ensures that the framework SProps retains only surface global properties, brought together, for example, by the function SurfaceProperties, for objects the density of which is equal to 1 (or is not defined), the function Mass will return the total area of faces of the system analysed by SProps. Warning No check is performed to verify that the shape S retains truly surface properties. If S is simply a vertex, an edge or a wire, it is not considered to present any additional global properties.
Parameters:
  • S (TopoDS_Shape &) –
  • SProps (GProp_GProps &) –
Return type:

void

  • Updates <SProps> with the shape <S>, that contains its pricipal properties. The surface properties of all the faces in <S> are computed. Adaptive 2D Gauss integration is used. Parameter Eps sets maximal relative error of computed mass (area) for each face. Error is calculated as Abs((M(i+1)-M(i))/M(i+1)), M(i+1) and M(i) are values for two successive steps of adaptive integration. Method returns estimation of relative error reached for whole shape. WARNING: if Eps > 0.001 algorithm performs non-adaptive integration. Computes the global volume properties of the solid S, and brings them together with the global properties still retained by the framework VProps. If the current system of VProps was empty, its global properties become equal to the global properties of S for volume. For this computation, no volume density is attached to the solid. Consequently, the added mass corresponds to the volume of S. The density of the component systems, i.e. that of each component of the current system of VProps, and that of S which is considered to be equal to 1, must be coherent to each other. Note that this coherence cannot be checked. You are advised to use a separate framework for each density, and then to bring these frameworks together into a global one. The point relative to which the inertia of the system is computed is the reference point of the framework VProps. Note: if your programming ensures that the framework VProps retains only global properties of volume (brought together for example, by the function VolumeProperties) for objects the density of which is equal to 1 (or is not defined), the function Mass will return the total volume of the solids of the system analysed by VProps. Warning The shape S must represent an object whose global volume properties can be computed. It may be a finite solid, or a series of finite solids all oriented in a coherent way. Nonetheless, S must be exempt of any free boundary. Note that these conditions of coherence are not checked by this algorithm, and results will be false if they are not respected.
Parameters:
  • S (TopoDS_Shape &) –
  • SProps (GProp_GProps &) –
  • Eps (float) –
Return type:

float

static VolumeProperties(*args)
Parameters:
  • S (TopoDS_Shape &) –
  • VProps (GProp_GProps &) –
  • OnlyClosed (bool) – default value is Standard_False
  • S
  • VProps
  • OnlyClosed – default value is Standard_False
Return type:

void

Return type:

void

  • Updates <VProps> with the shape <S>, that contains its pricipal properties. The volume properties of all the FORWARD and REVERSED faces in <S> are computed. If OnlyClosed is True then computed faces must belong to closed Shells. Adaptive 2D Gauss integration is used. Parameter Eps sets maximal relative error of computed mass (volume) for each face. Error is calculated as Abs((M(i+1)-M(i))/M(i+1)), M(i+1) and M(i) are values for two successive steps of adaptive integration. Method returns estimation of relative error reached for whole shape. WARNING: if Eps > 0.001 algorithm performs non-adaptive integration.
Parameters:
  • S (TopoDS_Shape &) –
  • VProps (GProp_GProps &) –
  • Eps (float) –
  • OnlyClosed (bool) – default value is Standard_False
Return type:

float

  • Updates <VProps> with the shape <S>, that contains its pricipal properties. The volume properties of all the FORWARD and REVERSED faces in <S> are computed. If OnlyClosed is True then computed faces must belong to closed Shells. Adaptive 2D Gauss integration is used. Parameter Eps sets maximal relative error of computed mass (volume) for each face. Error is calculated as Abs((M(i+1)-M(i))/M(i+1)), M(i+1) and M(i) are values for two successive steps of adaptive integration. Method returns estimation of relative error reached for whole shape. WARNING: if Eps > 0.001 algorithm performs non-adaptive integration.
Parameters:
  • S (TopoDS_Shape &) –
  • VProps (GProp_GProps &) –
  • Eps (float) –
  • OnlyClosed (bool) – default value is Standard_False
Return type:

float

static VolumePropertiesGK(*args)
  • Updates <VProps> with the shape <S>, that contains its pricipal properties. The volume properties of all the FORWARD and REVERSED faces in <S> are computed. If OnlyClosed is True then computed faces must belong to closed Shells. Adaptive 2D Gauss integration is used. Parameter IsUseSpan says if it is necessary to define spans on a face. This option has an effect only for BSpline faces. Parameter Eps sets maximal relative error of computed property for each face. Error is delivered by the adaptive Gauss-Kronrod method of integral computation that is used for properties computation. Method returns estimation of relative error reached for whole shape. Returns negative value if the computation is failed.
Parameters:
  • S (TopoDS_Shape &) –
  • VProps (GProp_GProps &) –
  • Eps (float) – default value is 0.001
  • OnlyClosed (bool) – default value is Standard_False
  • IsUseSpan (bool) – default value is Standard_False
  • CGFlag (bool) – default value is Standard_False
  • IFlag (bool) – default value is Standard_False
Return type:

float

  • Updates <VProps> with the shape <S>, that contains its pricipal properties. The volume properties of all the FORWARD and REVERSED faces in <S> are computed. If OnlyClosed is True then computed faces must belong to closed Shells. Adaptive 2D Gauss integration is used. Parameter IsUseSpan says if it is necessary to define spans on a face. This option has an effect only for BSpline faces. Parameter Eps sets maximal relative error of computed property for each face. Error is delivered by the adaptive Gauss-Kronrod method of integral computation that is used for properties computation. Method returns estimation of relative error reached for whole shape. Returns negative value if the computation is failed.
Parameters:
  • S (TopoDS_Shape &) –
  • VProps (GProp_GProps &) –
  • Eps (float) – default value is 0.001
  • OnlyClosed (bool) – default value is Standard_False
  • IsUseSpan (bool) – default value is Standard_False
  • CGFlag (bool) – default value is Standard_False
  • IFlag (bool) – default value is Standard_False
Return type:

float

  • Updates <VProps> with the shape <S>, that contains its pricipal properties. The volume properties of all the FORWARD and REVERSED faces in <S> are computed. If OnlyClosed is True then computed faces must belong to closed Shells. Adaptive 2D Gauss integration is used. Parameter IsUseSpan says if it is necessary to define spans on a face. This option has an effect only for BSpline faces. Parameter Eps sets maximal relative error of computed property for each face. Error is delivered by the adaptive Gauss-Kronrod method of integral computation that is used for properties computation. Method returns estimation of relative error reached for whole shape. Returns negative value if the computation is failed.
Parameters:
  • S (TopoDS_Shape &) –
  • VProps (GProp_GProps &) –
  • Eps (float) – default value is 0.001
  • OnlyClosed (bool) – default value is Standard_False
  • IsUseSpan (bool) – default value is Standard_False
  • CGFlag (bool) – default value is Standard_False
  • IFlag (bool) – default value is Standard_False
Return type:

float

  • Updates <VProps> with the shape <S>, that contains its pricipal properties. The volume properties of all the FORWARD and REVERSED faces in <S> are computed. If OnlyClosed is True then computed faces must belong to closed Shells. Adaptive 2D Gauss integration is used. Parameter IsUseSpan says if it is necessary to define spans on a face. This option has an effect only for BSpline faces. Parameter Eps sets maximal relative error of computed property for each face. Error is delivered by the adaptive Gauss-Kronrod method of integral computation that is used for properties computation. Method returns estimation of relative error reached for whole shape. Returns negative value if the computation is failed.
Parameters:
  • S (TopoDS_Shape &) –
  • VProps (GProp_GProps &) –
  • Eps (float) – default value is 0.001
  • OnlyClosed (bool) – default value is Standard_False
  • IsUseSpan (bool) – default value is Standard_False
  • CGFlag (bool) – default value is Standard_False
  • IFlag (bool) – default value is Standard_False
Return type:

float

  • Updates <VProps> with the shape <S>, that contains its pricipal properties. The volume properties of all the FORWARD and REVERSED faces in <S> are computed. If OnlyClosed is True then computed faces must belong to closed Shells. Adaptive 2D Gauss integration is used. Parameter IsUseSpan says if it is necessary to define spans on a face. This option has an effect only for BSpline faces. Parameter Eps sets maximal relative error of computed property for each face. Error is delivered by the adaptive Gauss-Kronrod method of integral computation that is used for properties computation. Method returns estimation of relative error reached for whole shape. Returns negative value if the computation is failed.
Parameters:
  • S (TopoDS_Shape &) –
  • VProps (GProp_GProps &) –
  • Eps (float) – default value is 0.001
  • OnlyClosed (bool) – default value is Standard_False
  • IsUseSpan (bool) – default value is Standard_False
  • CGFlag (bool) – default value is Standard_False
  • IFlag (bool) – default value is Standard_False
Return type:

float

  • Updates <VProps> with the shape <S>, that contains its pricipal properties. The volume properties of all the FORWARD and REVERSED faces in <S> are computed. If OnlyClosed is True then computed faces must belong to closed Shells. Adaptive 2D Gauss integration is used. Parameter IsUseSpan says if it is necessary to define spans on a face. This option has an effect only for BSpline faces. Parameter Eps sets maximal relative error of computed property for each face. Error is delivered by the adaptive Gauss-Kronrod method of integral computation that is used for properties computation. Method returns estimation of relative error reached for whole shape. Returns negative value if the computation is failed.
Parameters:
  • S (TopoDS_Shape &) –
  • VProps (GProp_GProps &) –
  • Eps (float) – default value is 0.001
  • OnlyClosed (bool) – default value is Standard_False
  • IsUseSpan (bool) – default value is Standard_False
  • CGFlag (bool) – default value is Standard_False
  • IFlag (bool) – default value is Standard_False
  • S
  • VProps
  • thePln (gp_Pln) –
  • Eps – default value is 0.001
  • OnlyClosed – default value is Standard_False
  • IsUseSpan – default value is Standard_False
  • CGFlag – default value is Standard_False
  • IFlag – default value is Standard_False
  • S
  • VProps
  • thePln
  • Eps – default value is 0.001
  • OnlyClosed – default value is Standard_False
  • IsUseSpan – default value is Standard_False
  • CGFlag – default value is Standard_False
  • IFlag – default value is Standard_False
  • S
  • VProps
  • thePln
  • Eps – default value is 0.001
  • OnlyClosed – default value is Standard_False
  • IsUseSpan – default value is Standard_False
  • CGFlag – default value is Standard_False
  • IFlag – default value is Standard_False
  • S
  • VProps
  • thePln
  • Eps – default value is 0.001
  • OnlyClosed – default value is Standard_False
  • IsUseSpan – default value is Standard_False
  • CGFlag – default value is Standard_False
  • IFlag – default value is Standard_False
  • S
  • VProps
  • thePln
  • Eps – default value is 0.001
  • OnlyClosed – default value is Standard_False
  • IsUseSpan – default value is Standard_False
  • CGFlag – default value is Standard_False
  • IFlag – default value is Standard_False
  • S
  • VProps
  • thePln
  • Eps – default value is 0.001
  • OnlyClosed – default value is Standard_False
  • IsUseSpan – default value is Standard_False
  • CGFlag – default value is Standard_False
  • IFlag – default value is Standard_False
Return type:

float

Return type:

float

Return type:

float

Return type:

float

Return type:

float

Return type:

float

Return type:

float

thisown

The membership flag

OCC.BRepGProp.brepgprop_LinearProperties(*args)
  • Computes the linear global properties of the shape S, i.e. the global properties induced by each edge of the shape S, and brings them together with the global properties still retained by the framework LProps. If the current system of LProps was empty, its global properties become equal to the linear global properties of S. For this computation no linear density is attached to the edges. So, for example, the added mass corresponds to the sum of the lengths of the edges of S. The density of the composed systems, i.e. that of each component of the current system of LProps, and that of S which is considered to be equal to 1, must be coherent. Note that this coherence cannot be checked. You are advised to use a separate framework for each density, and then to bring these frameworks together into a global one. The point relative to which the inertia of the system is computed is the reference point of the framework LProps. Note: if your programming ensures that the framework LProps retains only linear global properties (brought together for example, by the function LinearProperties) for objects the density of which is equal to 1 (or is not defined), the function Mass will return the total length of edges of the system analysed by LProps. Warning No check is performed to verify that the shape S retains truly linear properties. If S is simply a vertex, it is not considered to present any additional global properties.
Parameters:
  • S (TopoDS_Shape &) –
  • LProps (GProp_GProps &) –
Return type:

void

OCC.BRepGProp.brepgprop_SurfaceProperties(*args)
  • Computes the surface global properties of the shape S, i.e. the global properties induced by each face of the shape S, and brings them together with the global properties still retained by the framework SProps. If the current system of SProps was empty, its global properties become equal to the surface global properties of S. For this computation, no surface density is attached to the faces. Consequently, the added mass corresponds to the sum of the areas of the faces of S. The density of the component systems, i.e. that of each component of the current system of SProps, and that of S which is considered to be equal to 1, must be coherent. Note that this coherence cannot be checked. You are advised to use a framework for each different value of density, and then to bring these frameworks together into a global one. The point relative to which the inertia of the system is computed is the reference point of the framework SProps. Note : if your programming ensures that the framework SProps retains only surface global properties, brought together, for example, by the function SurfaceProperties, for objects the density of which is equal to 1 (or is not defined), the function Mass will return the total area of faces of the system analysed by SProps. Warning No check is performed to verify that the shape S retains truly surface properties. If S is simply a vertex, an edge or a wire, it is not considered to present any additional global properties.
Parameters:
  • S (TopoDS_Shape &) –
  • SProps (GProp_GProps &) –
Return type:

void

  • Updates <SProps> with the shape <S>, that contains its pricipal properties. The surface properties of all the faces in <S> are computed. Adaptive 2D Gauss integration is used. Parameter Eps sets maximal relative error of computed mass (area) for each face. Error is calculated as Abs((M(i+1)-M(i))/M(i+1)), M(i+1) and M(i) are values for two successive steps of adaptive integration. Method returns estimation of relative error reached for whole shape. WARNING: if Eps > 0.001 algorithm performs non-adaptive integration. Computes the global volume properties of the solid S, and brings them together with the global properties still retained by the framework VProps. If the current system of VProps was empty, its global properties become equal to the global properties of S for volume. For this computation, no volume density is attached to the solid. Consequently, the added mass corresponds to the volume of S. The density of the component systems, i.e. that of each component of the current system of VProps, and that of S which is considered to be equal to 1, must be coherent to each other. Note that this coherence cannot be checked. You are advised to use a separate framework for each density, and then to bring these frameworks together into a global one. The point relative to which the inertia of the system is computed is the reference point of the framework VProps. Note: if your programming ensures that the framework VProps retains only global properties of volume (brought together for example, by the function VolumeProperties) for objects the density of which is equal to 1 (or is not defined), the function Mass will return the total volume of the solids of the system analysed by VProps. Warning The shape S must represent an object whose global volume properties can be computed. It may be a finite solid, or a series of finite solids all oriented in a coherent way. Nonetheless, S must be exempt of any free boundary. Note that these conditions of coherence are not checked by this algorithm, and results will be false if they are not respected.
Parameters:
  • S (TopoDS_Shape &) –
  • SProps (GProp_GProps &) –
  • Eps (float) –
Return type:

float

OCC.BRepGProp.brepgprop_VolumeProperties(*args)
Parameters:
  • S (TopoDS_Shape &) –
  • VProps (GProp_GProps &) –
  • OnlyClosed (bool) – default value is Standard_False
  • S
  • VProps
  • OnlyClosed – default value is Standard_False
Return type:

void

Return type:

void

  • Updates <VProps> with the shape <S>, that contains its pricipal properties. The volume properties of all the FORWARD and REVERSED faces in <S> are computed. If OnlyClosed is True then computed faces must belong to closed Shells. Adaptive 2D Gauss integration is used. Parameter Eps sets maximal relative error of computed mass (volume) for each face. Error is calculated as Abs((M(i+1)-M(i))/M(i+1)), M(i+1) and M(i) are values for two successive steps of adaptive integration. Method returns estimation of relative error reached for whole shape. WARNING: if Eps > 0.001 algorithm performs non-adaptive integration.
Parameters:
  • S (TopoDS_Shape &) –
  • VProps (GProp_GProps &) –
  • Eps (float) –
  • OnlyClosed (bool) – default value is Standard_False
Return type:

float

  • Updates <VProps> with the shape <S>, that contains its pricipal properties. The volume properties of all the FORWARD and REVERSED faces in <S> are computed. If OnlyClosed is True then computed faces must belong to closed Shells. Adaptive 2D Gauss integration is used. Parameter Eps sets maximal relative error of computed mass (volume) for each face. Error is calculated as Abs((M(i+1)-M(i))/M(i+1)), M(i+1) and M(i) are values for two successive steps of adaptive integration. Method returns estimation of relative error reached for whole shape. WARNING: if Eps > 0.001 algorithm performs non-adaptive integration.
Parameters:
  • S (TopoDS_Shape &) –
  • VProps (GProp_GProps &) –
  • Eps (float) –
  • OnlyClosed (bool) – default value is Standard_False
Return type:

float

OCC.BRepGProp.brepgprop_VolumePropertiesGK(*args)
  • Updates <VProps> with the shape <S>, that contains its pricipal properties. The volume properties of all the FORWARD and REVERSED faces in <S> are computed. If OnlyClosed is True then computed faces must belong to closed Shells. Adaptive 2D Gauss integration is used. Parameter IsUseSpan says if it is necessary to define spans on a face. This option has an effect only for BSpline faces. Parameter Eps sets maximal relative error of computed property for each face. Error is delivered by the adaptive Gauss-Kronrod method of integral computation that is used for properties computation. Method returns estimation of relative error reached for whole shape. Returns negative value if the computation is failed.
Parameters:
  • S (TopoDS_Shape &) –
  • VProps (GProp_GProps &) –
  • Eps (float) – default value is 0.001
  • OnlyClosed (bool) – default value is Standard_False
  • IsUseSpan (bool) – default value is Standard_False
  • CGFlag (bool) – default value is Standard_False
  • IFlag (bool) – default value is Standard_False
Return type:

float

  • Updates <VProps> with the shape <S>, that contains its pricipal properties. The volume properties of all the FORWARD and REVERSED faces in <S> are computed. If OnlyClosed is True then computed faces must belong to closed Shells. Adaptive 2D Gauss integration is used. Parameter IsUseSpan says if it is necessary to define spans on a face. This option has an effect only for BSpline faces. Parameter Eps sets maximal relative error of computed property for each face. Error is delivered by the adaptive Gauss-Kronrod method of integral computation that is used for properties computation. Method returns estimation of relative error reached for whole shape. Returns negative value if the computation is failed.
Parameters:
  • S (TopoDS_Shape &) –
  • VProps (GProp_GProps &) –
  • Eps (float) – default value is 0.001
  • OnlyClosed (bool) – default value is Standard_False
  • IsUseSpan (bool) – default value is Standard_False
  • CGFlag (bool) – default value is Standard_False
  • IFlag (bool) – default value is Standard_False
Return type:

float

  • Updates <VProps> with the shape <S>, that contains its pricipal properties. The volume properties of all the FORWARD and REVERSED faces in <S> are computed. If OnlyClosed is True then computed faces must belong to closed Shells. Adaptive 2D Gauss integration is used. Parameter IsUseSpan says if it is necessary to define spans on a face. This option has an effect only for BSpline faces. Parameter Eps sets maximal relative error of computed property for each face. Error is delivered by the adaptive Gauss-Kronrod method of integral computation that is used for properties computation. Method returns estimation of relative error reached for whole shape. Returns negative value if the computation is failed.
Parameters:
  • S (TopoDS_Shape &) –
  • VProps (GProp_GProps &) –
  • Eps (float) – default value is 0.001
  • OnlyClosed (bool) – default value is Standard_False
  • IsUseSpan (bool) – default value is Standard_False
  • CGFlag (bool) – default value is Standard_False
  • IFlag (bool) – default value is Standard_False
Return type:

float

  • Updates <VProps> with the shape <S>, that contains its pricipal properties. The volume properties of all the FORWARD and REVERSED faces in <S> are computed. If OnlyClosed is True then computed faces must belong to closed Shells. Adaptive 2D Gauss integration is used. Parameter IsUseSpan says if it is necessary to define spans on a face. This option has an effect only for BSpline faces. Parameter Eps sets maximal relative error of computed property for each face. Error is delivered by the adaptive Gauss-Kronrod method of integral computation that is used for properties computation. Method returns estimation of relative error reached for whole shape. Returns negative value if the computation is failed.
Parameters:
  • S (TopoDS_Shape &) –
  • VProps (GProp_GProps &) –
  • Eps (float) – default value is 0.001
  • OnlyClosed (bool) – default value is Standard_False
  • IsUseSpan (bool) – default value is Standard_False
  • CGFlag (bool) – default value is Standard_False
  • IFlag (bool) – default value is Standard_False
Return type:

float

  • Updates <VProps> with the shape <S>, that contains its pricipal properties. The volume properties of all the FORWARD and REVERSED faces in <S> are computed. If OnlyClosed is True then computed faces must belong to closed Shells. Adaptive 2D Gauss integration is used. Parameter IsUseSpan says if it is necessary to define spans on a face. This option has an effect only for BSpline faces. Parameter Eps sets maximal relative error of computed property for each face. Error is delivered by the adaptive Gauss-Kronrod method of integral computation that is used for properties computation. Method returns estimation of relative error reached for whole shape. Returns negative value if the computation is failed.
Parameters:
  • S (TopoDS_Shape &) –
  • VProps (GProp_GProps &) –
  • Eps (float) – default value is 0.001
  • OnlyClosed (bool) – default value is Standard_False
  • IsUseSpan (bool) – default value is Standard_False
  • CGFlag (bool) – default value is Standard_False
  • IFlag (bool) – default value is Standard_False
Return type:

float

  • Updates <VProps> with the shape <S>, that contains its pricipal properties. The volume properties of all the FORWARD and REVERSED faces in <S> are computed. If OnlyClosed is True then computed faces must belong to closed Shells. Adaptive 2D Gauss integration is used. Parameter IsUseSpan says if it is necessary to define spans on a face. This option has an effect only for BSpline faces. Parameter Eps sets maximal relative error of computed property for each face. Error is delivered by the adaptive Gauss-Kronrod method of integral computation that is used for properties computation. Method returns estimation of relative error reached for whole shape. Returns negative value if the computation is failed.
Parameters:
  • S (TopoDS_Shape &) –
  • VProps (GProp_GProps &) –
  • Eps (float) – default value is 0.001
  • OnlyClosed (bool) – default value is Standard_False
  • IsUseSpan (bool) – default value is Standard_False
  • CGFlag (bool) – default value is Standard_False
  • IFlag (bool) – default value is Standard_False
  • S
  • VProps
  • thePln (gp_Pln) –
  • Eps – default value is 0.001
  • OnlyClosed – default value is Standard_False
  • IsUseSpan – default value is Standard_False
  • CGFlag – default value is Standard_False
  • IFlag – default value is Standard_False
  • S
  • VProps
  • thePln
  • Eps – default value is 0.001
  • OnlyClosed – default value is Standard_False
  • IsUseSpan – default value is Standard_False
  • CGFlag – default value is Standard_False
  • IFlag – default value is Standard_False
  • S
  • VProps
  • thePln
  • Eps – default value is 0.001
  • OnlyClosed – default value is Standard_False
  • IsUseSpan – default value is Standard_False
  • CGFlag – default value is Standard_False
  • IFlag – default value is Standard_False
  • S
  • VProps
  • thePln
  • Eps – default value is 0.001
  • OnlyClosed – default value is Standard_False
  • IsUseSpan – default value is Standard_False
  • CGFlag – default value is Standard_False
  • IFlag – default value is Standard_False
  • S
  • VProps
  • thePln
  • Eps – default value is 0.001
  • OnlyClosed – default value is Standard_False
  • IsUseSpan – default value is Standard_False
  • CGFlag – default value is Standard_False
  • IFlag – default value is Standard_False
  • S
  • VProps
  • thePln
  • Eps – default value is 0.001
  • OnlyClosed – default value is Standard_False
  • IsUseSpan – default value is Standard_False
  • CGFlag – default value is Standard_False
  • IFlag – default value is Standard_False
Return type:

float

Return type:

float

Return type:

float

Return type:

float

Return type:

float

Return type:

float

Return type:

float