OCC.Core.Poly module¶
Poly module, see official documentation at https://www.opencascade.com/doc/occt-7.4.0/refman/html/package_poly.html
-
class
Poly_Array1OfTriangle
(*args)¶ Bases:
object
-
Assign
()¶
-
ChangeFirst
()¶
-
ChangeLast
()¶
-
ChangeValue
()¶
-
First
()¶
-
Init
()¶
-
IsAllocated
()¶
-
IsDeletable
()¶
-
IsEmpty
()¶
-
Last
()¶
-
Length
()¶
-
Lower
()¶
-
Move
()¶
-
Resize
()¶
-
Set
()¶
-
SetValue
()¶
-
Size
()¶
-
Upper
()¶
-
Value
()¶
-
begin
()¶
-
cbegin
()¶
-
cend
()¶
-
end
()¶
-
next
()¶
-
property
thisown
¶ The membership flag
-
-
class
Poly_CoherentLink
(*args)¶ Bases:
object
- /** * Empty constructor. */
- rtype
None* /** * Constructor. Creates a Link that has no reference to ‘opposite nodes’. * This constructor is useful to create temporary object that is not * inserted into any existing triangulation. */
- param iNode0
- type iNode0
int
- param iNode1
- type iNode1
int
- rtype
None* /** * Constructor, takes a triangle and a side. A link is created always such * that myNode[0] < myNode[1]. Unlike the previous constructor, this one * assigns the ‘opposite node’ fields. This constructor is used when a * link is inserted into a Poly_CoherentTriangulation structure. * @param theTri * Triangle containing the link that is created * @param iSide * Can be 0, 1 or 2. Index of the node */
- param theTri
- type theTri
Poly_CoherentTriangle
- param iSide
- type iSide
int
- rtype
None
-
IsEmpty
()¶ - /** * Query the status of the link - if it is an invalid one. * An invalid link has Node members equal to -1. */
- rtype
inline bool
-
Node
()¶ - /** * Return the node index in the current triangulation. * @param ind * 0 or 1 making distinction of the two nodes that constitute the Link. * Node(0) always returns a smaller number than Node(1). */
- param ind
- type ind
int
- rtype
inline int
-
OppositeNode
()¶ - /** * Return the opposite node (belonging to the left or right incident triangle) * index in the current triangulation. * @param ind * 0 or 1 making distinction of the two involved triangles: 0 on the left, * 1 on the right side of the Link. */
- param ind
- type ind
int
- rtype
inline int
-
SetAttribute
()¶ - /** * Set the attribute of the Link. */
- param theAtt
- type theAtt
Standard_Address
- rtype
inline void
-
property
thisown
¶ The membership flag
-
class
Poly_CoherentNode
(*args)¶ Bases:
OCC.Core.gp.gp_XYZ
-
AddTriangle
()¶ - /** * Connect a triangle to this Node. */
- param theTri
- type theTri
Poly_CoherentTriangle
- param theA
- type theA
NCollection_BaseAllocator
- rtype
None
-
DumpToString
(Poly_CoherentNode self) → std::string¶
-
IsFreeNode
()¶ - /** * Check if this is a free node, i.e., a node without a single * incident triangle. */
- rtype
inline bool
-
RemoveTriangle
()¶ - /** * Disconnect a triangle from this Node. */
- param theTri
- type theTri
Poly_CoherentTriangle
- param theA
- type theA
NCollection_BaseAllocator
- rtype
bool
-
SetIndex
()¶ - /** * Set the value of node Index. */
- param theIndex
- type theIndex
int
- rtype
inline void
-
SetNormal
()¶ - /** * Define the normal vector in the Node. */
- param theVector
- type theVector
gp_XYZ
- rtype
None
-
SetUV
()¶ - /** * Set the UV coordinates of the Node. */
- param theU
- type theU
float
- param theV
- type theV
float
- rtype
inline void
-
TriangleIterator
()¶ - /** * Create an iterator of incident triangles. */
- rtype
inline Poly_CoherentTriPtr::Iterator
-
property
thisown
¶ The membership flag
-
class
Poly_CoherentTriangle
(*args)¶ Bases:
object
-
FindConnection
()¶ - /** * Retuns the index of the connection with the given triangle, or -1 if not * found. */
- param &
- type &
Poly_CoherentTriangle
- rtype
int
-
GetConnectedNode
()¶ - /** * Query the connected node on the given side. * Returns -1 if there is no connection on the specified side. */
- param iConn
- type iConn
int
- rtype
inline int
-
GetConnectedTri
()¶ - /** * Query the connected triangle on the given side. * Returns NULL if there is no connection on the specified side. */
- param iConn
- type iConn
int
- rtype
inline Poly_CoherentTriangle *
-
GetLink
()¶ - /** * Query the Link associate with the given side of the Triangle. * May return NULL if there are no links in the triangulation. */
- param iLink
- type iLink
int
- rtype
inline Poly_CoherentLink *
-
Node
()¶ - /** * Query the node index in the position given by the parameter ‘ind’ */
- param ind
- type ind
int
- rtype
inline int
-
RemoveConnection
()¶ - /** * Remove the connection with the given index. * @param iConn * Can be 0, 1 or 2 - index of the node that is opposite to the connection * (shared link). */
- param iConn
- type iConn
int
- rtype
None* /** * Remove the connection with the given Triangle. * returns * True if successfuol or False if the connection has not been found. */
- param theTri
- type theTri
Poly_CoherentTriangle
- rtype
bool
-
SetConnection
()¶ - /** * Create connection with another triangle theTri. * This method creates both connections: in this triangle and in theTri. You * do not need to call the same method on triangle theTr. * @param iConn * Can be 0, 1 or 2 - index of the node that is opposite to the connection * (shared link). * @param theTr * Triangle that is connected on the given link. * returns * True if successful, False if the connection is rejected * due to improper topology. */
- param iConn
- type iConn
int
- param theTr
- type theTr
Poly_CoherentTriangle
- rtype
bool* /** * Create connection with another triangle theTri. * This method creates both connections: in this triangle and in theTri. * This method is slower than the previous one, because it makes analysis * what sides of both triangles are connected. * @param theTri * Triangle that is connected. * returns * True if successful, False if the connection is rejected * due to improper topology. */
- param theTri
- type theTri
Poly_CoherentTriangle
- rtype
bool
-
property
thisown
¶ The membership flag
-
class
Poly_Connect
(*args)¶ Bases:
object
- Constructs an uninitialized algorithm.
- rtype
None* Constructs an algorithm to explore the adjacency data of nodes or triangles for the triangulation T.
- param theTriangulation
- type theTriangulation
Poly_Triangulation
- rtype
None
-
Initialize
()¶ - Initializes an iterator to search for all the triangles containing the node referenced at index N in the nodes table, for the triangulation analyzed by this tool. The iterator is managed by the following functions: - More, which checks if there are still elements in the iterator - Next, which positions the iterator on the next element - Value, which returns the current element. The use of such an iterator provides direct access to the triangles around a particular node, i.e. it avoids iterating on all the component triangles of a triangulation. Example Poly_Connect C(Tr); for (C.Initialize(n1);C.More();C.Next()) { t = C.Value(); }
- param N
- type N
int
- rtype
None
-
Load
()¶ - Initialize the algorithm to explore the adjacency data of nodes or triangles for the triangulation theTriangulation.
- param theTriangulation
- type theTriangulation
Poly_Triangulation
- rtype
None
-
More
()¶ - Returns true if there is another element in the iterator defined with the function Initialize (i.e. if there is another triangle containing the given node).
- rtype
bool
-
Next
()¶ - Advances the iterator defined with the function Initialize to access the next triangle. Note: There is no action if the iterator is empty (i.e. if the function More returns false).-
- rtype
None
-
Nodes
()¶ - Returns, in n1, n2 and n3, the indices of the 3 nodes adjacent to the triangle referenced at index T in the triangles table specific to the triangulation analyzed by this tool. Warning Null indices are returned when there are fewer than 3 adjacent nodes.
- param T
- type T
int
- param n1
- type n1
int
- param n2
- type n2
int
- param n3
- type n3
int
- rtype
None
-
Triangle
()¶ - Returns the index of a triangle containing the node at index N in the nodes table specific to the triangulation analyzed by this tool
- param N
- type N
int
- rtype
int
-
Triangles
()¶ - Returns in t1, t2 and t3, the indices of the 3 triangles adjacent to the triangle at index T in the triangles table specific to the triangulation analyzed by this tool. Warning Null indices are returned when there are fewer than 3 adjacent triangles.
- param T
- type T
int
- param t1
- type t1
int
- param t2
- type t2
int
- param t3
- type t3
int
- rtype
None
-
Triangulation
()¶ - Returns the triangulation analyzed by this tool.
- rtype
opencascade::handle<Poly_Triangulation>
-
Value
()¶ - Returns the index of the current triangle to which the iterator, defined with the function Initialize, points. This is an index in the triangles table specific to the triangulation analyzed by this tool
- rtype
int
-
property
thisown
¶ The membership flag
-
class
Poly_HArray1OfTriangle
(*args)¶ Bases:
OCC.Core.Poly.Poly_Array1OfTriangle
,OCC.Core.Standard.Standard_Transient
Empty constructor
- Return type
None* Copy constructor – does nothing
- Parameters
& (Standard_Transient) –
- Return type
-
Array1
()¶
-
ChangeArray1
()¶
-
static
DownCast
(t)¶
-
property
thisown
¶ The membership flag
-
class
Poly_ListOfTriangulation
(*args)¶ Bases:
object
-
Append
()¶
-
Assign
()¶
-
Clear
()¶
-
First
()¶
-
InsertAfter
()¶
-
InsertBefore
()¶
-
Last
()¶
-
Prepend
()¶
-
Remove
()¶
-
RemoveFirst
()¶
-
Reverse
()¶
-
Set
()¶
-
Size
()¶
-
begin
()¶
-
cbegin
()¶
-
cend
()¶
-
end
()¶
-
property
thisown
¶ The membership flag
-
-
class
Poly_Polygon2D
(*args)¶ Bases:
OCC.Core.Standard.Standard_Transient
- Constructs a 2D polygon defined by the table of points, <Nodes>.
- param Nodes
- type Nodes
TColgp_Array1OfPnt2d
- rtype
None
-
Deflection
()¶ - Returns the deflection of this polygon. Deflection is used in cases where the polygon is an approximate representation of a curve. Deflection represents the maximum distance permitted between any point on the curve and the corresponding point on the polygon. By default the deflection value is equal to 0. An algorithm using this 2D polygon with a deflection value equal to 0 considers that it is working with a true polygon and not with an approximate representation of a curve. The Deflection function is used to modify the deflection value of this polygon. The deflection value can be used by any algorithm working with 2D polygons. For example: - An algorithm may use a unique deflection value for all its polygons. In this case it is not necessary to use the Deflection function. - Or an algorithm may want to attach a different deflection to each polygon. In this case, the Deflection function is used to set a value on each polygon, and later to fetch the value.
- rtype
float* Sets the deflection of this polygon to D
- param D
- type D
float
- rtype
None
-
static
DownCast
(t)¶
-
NbNodes
()¶ - Returns the number of nodes in this polygon. Note: If the polygon is closed, the point of closure is repeated at the end of its table of nodes. Thus, on a closed triangle, the function NbNodes returns 4.
- rtype
int
-
Nodes
()¶ - Returns the table of nodes for this polygon.
- rtype
TColgp_Array1OfPnt2d
-
property
thisown
¶ The membership flag
-
class
Poly_Polygon3D
(*args)¶ Bases:
OCC.Core.Standard.Standard_Transient
- onstructs a 3D polygon defined by the table of points, Nodes.
- param Nodes
- type Nodes
TColgp_Array1OfPnt
- rtype
None* Constructs a 3D polygon defined by the table of points, Nodes, and the parallel table of parameters, Parameters, where each value of the table Parameters is the parameter of the corresponding point on the curve approximated by the constructed polygon. Warning Both the Nodes and Parameters tables must have the same bounds. This property is not checked at construction time.
- param Nodes
- type Nodes
TColgp_Array1OfPnt
- param Parameters
- type Parameters
TColStd_Array1OfReal
- rtype
None
-
ChangeParameters
()¶ - Returns the table of the parameters associated with each node in this polygon. ChangeParameters function returnes the array as shared. Therefore if the table is selected by reference you can, by simply modifying it, directly modify the data structure of this polygon.
- rtype
TColStd_Array1OfReal
-
Copy
()¶ - Creates a copy of current polygon
- rtype
opencascade::handle<Poly_Polygon3D>
-
Deflection
()¶ - Returns the deflection of this polygon
- rtype
float* Sets the deflection of this polygon to D. See more on deflection in Poly_Polygon2D
- param D
- type D
float
- rtype
None
-
static
DownCast
(t)¶
-
HasParameters
()¶ - Returns the table of the parameters associated with each node in this polygon. HasParameters function checks if parameters are associated with the nodes of this polygon.
- rtype
bool
-
NbNodes
()¶ - Returns the number of nodes in this polygon. Note: If the polygon is closed, the point of closure is repeated at the end of its table of nodes. Thus, on a closed triangle the function NbNodes returns 4.
- rtype
int
-
Nodes
()¶ - Returns the table of nodes for this polygon.
- rtype
TColgp_Array1OfPnt
-
Parameters
()¶ - Returns true if parameters are associated with the nodes in this polygon.
- rtype
TColStd_Array1OfReal
-
property
thisown
¶ The membership flag
-
class
Poly_PolygonOnTriangulation
(*args)¶ Bases:
OCC.Core.Standard.Standard_Transient
- Constructs a 3D polygon on the triangulation of a shape, defined by the table of nodes, <Nodes>.
- param Nodes
- type Nodes
TColStd_Array1OfInteger
- rtype
None* Constructs a 3D polygon on the triangulation of a shape, defined by: - the table of nodes, Nodes, and the table of parameters, <Parameters>. where: - a node value is an index in the table of nodes specific to an existing triangulation of a shape - and a parameter value is the value of the parameter of the corresponding point on the curve approximated by the constructed polygon. Warning The tables Nodes and Parameters must be the same size. This property is not checked at construction time.
- param Nodes
- type Nodes
TColStd_Array1OfInteger
- param Parameters
- type Parameters
TColStd_Array1OfReal
- rtype
None
-
Copy
()¶ - Creates a copy of current polygon
- rtype
opencascade::handle<Poly_PolygonOnTriangulation>
-
Deflection
()¶ - Returns the deflection of this polygon
- rtype
float* Sets the deflection of this polygon to D. See more on deflection in Poly_Polygones2D.
- param D
- type D
float
- rtype
None
-
static
DownCast
(t)¶
-
HasParameters
()¶ - Returns true if parameters are associated with the nodes in this polygon.
- rtype
bool
-
NbNodes
()¶ - Returns the number of nodes for this polygon. Note: If the polygon is closed, the point of closure is repeated at the end of its table of nodes. Thus, on a closed triangle, the function NbNodes returns 4.
- rtype
int
-
Nodes
()¶ - Returns the table of nodes for this polygon. A node value is an index in the table of nodes specific to an existing triangulation of a shape.
- rtype
TColStd_Array1OfInteger
-
Parameters
()¶ - Returns the table of the parameters associated with each node in this polygon. Warning Use the function HasParameters to check if parameters are associated with the nodes in this polygon.
- rtype
opencascade::handle<TColStd_HArray1OfReal>
-
property
thisown
¶ The membership flag
-
class
Poly_Triangle
(*args)¶ Bases:
object
- Constructs a triangle and sets all indices to zero.
- rtype
None* Constructs a triangle and sets its three indices to N1, N2 and N3 respectively, where these node values are indices in the table of nodes specific to an existing triangulation of a shape.
- param N1
- type N1
int
- param N2
- type N2
int
- param N3
- type N3
int
- rtype
None
-
Get
()¶ - Returns the node indices of this triangle in N1, N2 and N3.
- param N1
- type N1
int
- param N2
- type N2
int
- param N3
- type N3
int
- rtype
None
-
GetChangeValue
(Poly_Triangle self, Standard_Integer const Index) → Standard_Integer¶
-
Set
()¶ - Sets the value of the three nodes of this triangle to N1, N2 and N3 respectively.
- param N1
- type N1
int
- param N2
- type N2
int
- param N3
- type N3
int
- rtype
None* Sets the value of the Indexth node of this triangle to Node. Raises OutOfRange if Index is not in 1,2,3
- param Index
- type Index
int
- param Node
- type Node
int
- rtype
None
-
SetChangeValue
(Poly_Triangle self, Standard_Integer const Index, Standard_Integer value)¶
-
Value
()¶ - Get the node of given Index. Raises OutOfRange from Standard if Index is not in 1,2,3
- param Index
- type Index
int
- rtype
int
-
property
thisown
¶ The membership flag
-
class
Poly_Triangulation
(*args)¶ Bases:
OCC.Core.Standard.Standard_Transient
- Constructs a triangulation from a set of triangles. The triangulation is initialized without a triangle or a node, but capable of containing nbNodes nodes, and nbTriangles triangles. Here the UVNodes flag indicates whether 2D nodes will be associated with 3D ones, (i.e. to enable a 2D representation).
- param nbNodes
- type nbNodes
int
- param nbTriangles
- type nbTriangles
int
- param UVNodes
- type UVNodes
bool
- rtype
None* Constructs a triangulation from a set of triangles. The triangulation is initialized with 3D points from Nodes and triangles from Triangles.
- param Nodes
- type Nodes
TColgp_Array1OfPnt
- param Triangles
- type Triangles
Poly_Array1OfTriangle
- rtype
None* Constructs a triangulation from a set of triangles. The triangulation is initialized with 3D points from Nodes, 2D points from UVNodes and triangles from Triangles, where coordinates of a 2D point from UVNodes are the (u, v) parameters of the corresponding 3D point from Nodes on the surface approximated by the constructed triangulation.
- param Nodes
- type Nodes
TColgp_Array1OfPnt
- param UVNodes
- type UVNodes
TColgp_Array1OfPnt2d
- param Triangles
- type Triangles
Poly_Array1OfTriangle
- rtype
None* Copy constructor for triangulation.
- param theTriangulation
- type theTriangulation
Poly_Triangulation
- rtype
None
-
ChangeNode
()¶ - Give access to the node at the given index. Raises Standard_OutOfRange exception if theIndex is less than 1 or greater than NbNodes.
- param theIndex
- type theIndex
int
- rtype
gp_Pnt
-
ChangeNodes
()¶ - Returns the table of 3D nodes (3D points) for this triangulation. The returned array is shared. Therefore if the table is selected by reference, you can, by simply modifying it, directly modify the data structure of this triangulation.
- rtype
TColgp_Array1OfPnt
-
ChangeNormals
()¶ - Gives access to the table of node normals.
- rtype
TShort_Array1OfShortReal
-
ChangeTriangle
()¶ - Give access to the triangle at the given index. Raises Standard_OutOfRange exception if theIndex is less than 1 or greater than NbTriangles.
- param theIndex
- type theIndex
int
- rtype
Poly_Triangle
-
ChangeTriangles
()¶ - Returns the table of triangles for this triangulation. Function ChangeUVNodes shares the returned array. Therefore if the table is selected by reference, you can, by simply modifying it, directly modify the data structure of this triangulation.
- rtype
Poly_Array1OfTriangle
-
ChangeUVNode
()¶ - Give access to the UVNode at the given index. Raises Standard_OutOfRange exception if theIndex is less than 1 or greater than NbNodes.
- param theIndex
- type theIndex
int
- rtype
gp_Pnt2d
-
ChangeUVNodes
()¶ - Returns the table of 2D nodes (2D points) associated with each 3D node of this triangulation. Function ChangeUVNodes shares the returned array. Therefore if the table is selected by reference, you can, by simply modifying it, directly modify the data structure of this triangulation.
- rtype
TColgp_Array1OfPnt2d
-
Copy
()¶ - Creates full copy of current triangulation
- rtype
opencascade::handle<Poly_Triangulation>
-
Deflection
()¶ - Returns the deflection of this triangulation.
- rtype
float* Sets the deflection of this triangulation to theDeflection. See more on deflection in Polygon2D
- param theDeflection
- type theDeflection
float
- rtype
None
-
static
DownCast
(t)¶
-
HasNormals
()¶ - Returns Standard_True if nodal normals are defined.
- rtype
bool
-
HasUVNodes
()¶ - Returns Standard_True if 2D nodes are associated with 3D nodes for this triangulation.
- rtype
bool
-
NbNodes
()¶ - Returns the number of nodes for this triangulation.
- rtype
int
-
NbTriangles
()¶ - Returns the number of triangles for this triangulation.
- rtype
int
-
Node
()¶ - Returns node at the given index. Raises Standard_OutOfRange exception if theIndex is less than 1 or greater than NbNodes.
- param theIndex
- type theIndex
int
- rtype
gp_Pnt
-
Nodes
()¶ - Returns the table of 3D nodes (3D points) for this triangulation.
- rtype
TColgp_Array1OfPnt
-
Normal
()¶ - returns normal at the given index. Raises Standard_OutOfRange exception.
- param theIndex
- type theIndex
int
- rtype
gp_Dir
-
Normals
()¶ - Returns the table of node normals.
- rtype
TShort_Array1OfShortReal
-
RemoveUVNodes
()¶ - Deallocates the UV nodes.
- rtype
None
-
SetNormal
()¶ - Changes normal at the given index. Raises Standard_OutOfRange exception.
- param theIndex
- type theIndex
int
- param theNormal
- type theNormal
gp_Dir
- rtype
None
-
SetNormals
()¶ - Sets the table of node normals. raises exception if length of theNormals != 3*NbNodes
- param theNormals
- type theNormals
TShort_HArray1OfShortReal
- rtype
None
-
Triangle
()¶ - Returns triangle at the given index. Raises Standard_OutOfRange exception if theIndex is less than 1 or greater than NbTriangles.
- param theIndex
- type theIndex
int
- rtype
Poly_Triangle
-
Triangles
()¶ - Returns the table of triangles for this triangulation.
- rtype
Poly_Array1OfTriangle
-
UVNode
()¶ - Returns UVNode at the given index. Raises Standard_OutOfRange exception if theIndex is less than 1 or greater than NbNodes.
- param theIndex
- type theIndex
int
- rtype
gp_Pnt2d
-
UVNodes
()¶ - Returns the table of 2D nodes (2D points) associated with each 3D node of this triangulation. The function HasUVNodes checks if 2D nodes are associated with the 3D nodes of this triangulation. Const reference on the 2d nodes values.
- rtype
TColgp_Array1OfPnt2d
-
property
thisown
¶ The membership flag
-
class
SwigPyIterator
(*args, **kwargs)¶ Bases:
object
-
advance
()¶
-
copy
()¶
-
decr
()¶
-
distance
()¶
-
equal
()¶
-
incr
()¶
-
next
()¶
-
previous
()¶
-
property
thisown
¶ The membership flag
-
value
()¶
-
-
class
poly
(poly self) → poly¶ Bases:
object
-
static
Catenate
()¶ - Computes and stores the link from nodes to triangles and from triangles to neighbouring triangles. This tool is obsolete, replaced by Poly_CoherentTriangulation Algorithm to make minimal loops in a graph Join several triangulations to one new triangulation object. The new triangulation is just a mechanical sum of input triangulations, without node sharing. UV coordinates are dropped in the result.
- param lstTri
- type lstTri
Poly_ListOfTriangulation
- rtype
opencascade::handle<Poly_Triangulation>
-
static
ComputeNormals
()¶ - Compute node normals for face triangulation as mean normal of surrounding triangles
- param Tri
- type Tri
Poly_Triangulation
- rtype
void
-
static
Dump
()¶ - Dumps the triangulation. This is a call to the previous method with Comapct set to False.
- param T
- type T
Poly_Triangulation
- param OS
- type OS
Standard_OStream
- rtype
void* Dumps the 3D polygon. This is a call to the previous method with Comapct set to False.
- param P
- type P
Poly_Polygon3D
- param OS
- type OS
Standard_OStream
- rtype
void* Dumps the 2D polygon. This is a call to the previous method with Comapct set to False.
- param P
- type P
Poly_Polygon2D
- param OS
- type OS
Standard_OStream
- rtype
void
-
static
PointOnTriangle
()¶ - Computes parameters of the point P on triangle defined by points P1, P2, and P3, in 2d. The parameters U and V are defined so that P = P1 + U * (P2 - P1) + V * (P3 - P1), with U >= 0, V >= 0, U + V <= 1. If P is located outside of triangle, or triangle is degenerated, the returned parameters correspond to closest point, and returned value is square of the distance from original point to triangle (0 if point is inside).
- param P1
- type P1
gp_XY
- param P2
- type P2
gp_XY
- param P3
- type P3
gp_XY
- param P
- type P
gp_XY
- param UV
- type UV
gp_XY
- rtype
float
-
ReadPolygon2DFromString
(poly self, std::string src)¶
-
ReadPolygon3DFromString
(poly self, std::string src)¶
-
ReadTriangulationFromString
(poly self, std::string src)¶
-
static
Write
()¶ - Writes the content of the triangulation <T> on the stream <OS>. If <Compact> is true this is a ‘save’ format intended to be read back with the Read method. If compact is False it is a ‘Dump’ format intended to be informative.
- param T
- type T
Poly_Triangulation
- param OS
- type OS
Standard_OStream
- param Compact
default value is Standard_True
- type Compact
bool
- rtype
void* Writes the content of the 3D polygon <P> on the stream <OS>. If <Compact> is true this is a ‘save’ format intended to be read back with the Read method. If compact is False it is a ‘Dump’ format intended to be informative.
- param P
- type P
Poly_Polygon3D
- param OS
- type OS
Standard_OStream
- param Compact
default value is Standard_True
- type Compact
bool
- rtype
void* Writes the content of the 2D polygon <P> on the stream <OS>. If <Compact> is true this is a ‘save’ format intended to be read back with the Read method. If compact is False it is a ‘Dump’ format intended to be informative.
- param P
- type P
Poly_Polygon2D
- param OS
- type OS
Standard_OStream
- param Compact
default value is Standard_True
- type Compact
bool
- rtype
void
-
property
thisown
¶ The membership flag
-
static