pyg4ometry.features

Submodules

Classes

CoordinateSystem

Plane

Plane class taking a point on plane and normal

FeatureData

Functions

extract(inputFileName[, angle, planeQuality, ...])

Package Contents

class pyg4ometry.features.CoordinateSystem(origin=[0, 0, 0], e1=[1, 0, 0], e2=[0, 1, 0])
origin
e1
e2
_commonInit()
makeFromPlanes(p1, p2, p3)
coordinateSystem(rotX=0.0, rotY=0.0, rotZ=0.0)
plane(rotX=0.0, rotY=0.0, rotZ=0.0)
transform(points)
__repr__()
class pyg4ometry.features.Plane(point, normal, e2=None, e3=None)

Plane class taking a point on plane and normal

Parameters:
  • point (list, array) – point on plane

  • normal (list, array) – vector of normal

point
normal
intersect(object)

Intersection between Line or Plane

Parameters:

object (Line or Plane) – Object to intersect with Plane (either Line or Plane)

intersectLine(line)

Intersection between plane (self) and line

intersectPlane(plane)

Compute intersection between two planes self and plane

angleBetween(plane)

Compute angle between two planes (self and plane)

Parameters:

plane (Plane) – Plane to intersect with self

Returns:

angle between two planes

Return type:

float

__repr__()
__iter__()
__next__()
flatten()
pyg4ometry.features.extract(inputFileName, angle=89, planeQuality=0.1, circumference=300, outputFileName=None, planes=[], bViewer=False, bViewerInteractive=False)
class pyg4ometry.features.FeatureData
features = []
cutters = []
readFile(fileName)
plotFeature(iFeature)
plotCutter(iCutter)