Geometry tools¶
- class model.geometry.geom_utils.LineWrapper(line)¶
Bases:
object
- getElementFunctionOrdinates(factor0, funcName0, factor1, funcName1)¶
Return a list with the values of attribute extrapolated at each node.
- getElements()¶
- getFirstNode()¶
Returns line’s first node.
- getInteriorNodes()¶
Returns line’s interior nodes.
- getLastNode()¶
Return line’s last node.
- getNodeAbcissae()¶
Return node abcissae; first node x= 0.0 last node x= lengthOfLine.
- getNodeAttrOrdinates(attributeName)¶
Return a list with the values of attribute at each node.
- getOrderedNodes()¶
Return line interior nodes.
- model.geometry.geom_utils.create_set_lines_from_pairs_points(preprocessor, lstPairPoints, setName)¶
Return a set of lines created between the pairs of points in list ‘lstPairPoints’
- Parameters
preprocessor – preprocessor
lstPairPoints – list of point pairs [[pnt1,pnt2],[pnt3,pnt4], …]
setName – name of the set to be created
- model.geometry.geom_utils.def_rg_cooLim(XYZLists, Xcoo, Ycoo, Zcoo)¶
Return an XYZ range given the three lists of coordinates of the grid and the limit coordinates.
- Parameters
XYZList – (xList,yList,zList)
Xcoo – (xmin,xmax)
Ycoo – (ymin,ymax)
Zcoo – (zmin,zmax)
- model.geometry.geom_utils.getFirstNode(line)¶
DEPRECATED; returns line’s first node.
- model.geometry.geom_utils.getInteriorNodes(line)¶
DEPRECATED; returns line’s interior nodes.
- model.geometry.geom_utils.getLastNode(line)¶
DEPRECATED; returns line’s last node.
- model.geometry.geom_utils.get_lin_2Pts(pnt1, pnt2, setSrchLin=None)¶
return the line that belongs to the set setSrchLin and whose starting and ending points are pnt1 and pnt2 (in this order) If no set is defined, total set is adopted.
- Parameters
pnt1 – first end point.
pnt2 – second end point.
setSrchLin – set to search the line into.
- model.geometry.geom_utils.get_line_sequence_from_point_sequence(lstPnts)¶
Return an ordered list of consecutive lines from the ordered list of points ‘lstPnts’ given as argument.
- Parameters
lstPnts – point sequence.
- model.geometry.geom_utils.get_point_sequence_from_line_sequence(lstLns)¶
Return an ordered list of vertex (3DPos) from the ordered list of consecutive lines ‘lstLns’ given as parameter.
- Parameters
lstLns – list of consecutive lines.
- model.geometry.geom_utils.get_pos3d_sequence_from_line_sequence(lstLns)¶
Return an ordered list of vertex positions from the ordered list of consecutive lines ‘lstLns’ given as parameter.
- Parameters
lstLns – list of consecutive lines.
- model.geometry.geom_utils.get_regression_plane_from_edge_list(edge_list)¶
Compute the regression plane from the points of the given edges.
- Parameters
edge_list – list of edges.
- model.geometry.geom_utils.lines_on_path(preprocessor, path, elementLength)¶
Return a list of newly created lines between the points on the path
- Parameters
preprocessor – preprocessor for the finite element problem.
path – point sequence
elementLength – length of the element for the lines
- model.geometry.geom_utils.lstEquPnts_from_polyline(pol, nDiv)¶
Return a list of nDiv+1 equally spaced points (3dPos) in polyline ‘pol’
- Parameters
pol – polyline (as defined with geom.Polyline3d())
nDiv – number of divisions to split polyline
- model.geometry.geom_utils.rect2DPolygon(xCent, yCent, Lx, Ly)¶
Rectangular polygon
Nets¶
- class model.geometry.net_utils.Net2DHelper(net2D)¶
Bases:
object
- assignZ(zFunc)¶
- createSurfaces(preprocessor, iSize, jSize)¶
- net = None¶
- model.geometry.net_utils.createSurfacesNet2D(preprocessor, net2D, iSize, jSize)¶
- model.geometry.net_utils.net2DfromXYlists(preprocessor, abscissae, ordinates)¶