Geometry Functionality

Base Class: DatabaseMember

Derived Classes: ObjectSet Geometry

Description

Common base class for all geometry objects (points, lines, surfaces and volumes), as well as groups, sets and selections and the main database itself. This class defines the operations that can be performed on and between such objects. In general, each function works on one or two DatabaseOperations object(s), and optionally also takes an GeometryData object in which various options and settings can be specified. All functions return a newly created ObjectSet object which contains the objects created or modified. If no variable is created using this returned set, it (the set, not the new objects) is immediately deleted - this indicates that the script programmer is not interested in which objects have been created/modified

Example

Create points from coordinates specified in a data object, ignoring the created point(s)

 call database.createPoint(geometryData)
 
Create points from coordinates specified in a data object, but having access to the created point(s) in a new set
 set points = database.createPoint(geometryData)
 pointArray = points.getObjects("Point", "all")
 
Create a line from selected points, accepting all default control options and ignoring the created line(s)
 call selection.createLine()
 
Intersect two lines, accepting all default control options and having access to the created point(s) in a new set
 set points = line1.intersectLines(line2)
 
Intersect lines in the two selections, accepting all default control options and ignoring any created points
 call selection.intersectLines(selectionMemory)
 
Intersect a line with lines in the selection, specifying control options and ignoring any created points
 call line1.intersectLines(selection, geometryData)
 

Available Functions:
 angleBetweenLines(obj)
 arcsTangentToLines(obj, [data])
 booleanIntersection([data])
 booleanSlice(obj, [data])
 booleanSplit(obj, [data])
 booleanSubtraction(obj, [data])
 booleanUnion([data])
 closestNodes()
 convertMeshToGeometry([data])
 copy([data])
 createCombinedLine([data])
 createLine([data])
 createPoint(first, [Y], [Z])
 createSurface([data])
 createVolume([data])
 cycle([data])
 cycleRelative([data])
 deleteContents([data])
 distanceBetweenPoints(obj)
 distanceFromPointToLine(obj)
 extrude([data])
 facet(data)
 getCentreofArea(pCentreOfAreaCoords, localCrds)
 getCentreofArea(pCentreOfAreaCoords, localCrds)
 intersectLines(obj, [data])
 intersectSurfaces(obj, [data])
 join(obj, [data])
 lengthOfLines()
 makeMergable([data])
 makeUnmergable([data])
 manifold(obj, [data])
 manifoldLines(obj, [data])
 manifoldPoints(obj, [data])
 manifoldSurfaces(obj, [data])
 merge(data)
 modify([data])
 move([data])
 offset([data])
 project(obj, [data])
 removeDegeneracies([data])
 reverse([data])
 sectionPropertyCalculator(obj, cArea, cIxx, cIyy, cIxy, cJ, cAsx, cAsy, cxc, cyc, [data], [fileName])
 separationBetweenLines(obj)
 splineTangentToLines(obj, [data])
 splitLine([data])
 splitLines([data])
 splitLinesAtPoints(obj, [data])
 splitSurface([data])
 splitSurfaces([data])
 splitSurfacesAtLines(obj, [data])
 splitSurfacesAtPointPairs(obj, [data])
 splitSurfacesAtPoints(obj, [data])
 splitVolume([data])
 straightsTangentToLines(obj, [data])
 sweep([data])
 sweepAlong(obj, [data])
 tangentsToPointAndLine(obj, [data])
 trim([data])
 unmerge(data)

Back to Overview