pyslm.analysis Package
Functions
|
Returns the effective laser speed given a |
Returns the intra-layer geometry jump length across the entire |
|
|
Returns the total number of scan jumps across a |
|
Calculates the jump distance of the laser between adjacent exposure points and hatches, principally used for |
|
Calculates the total path length scanned by the laser across a single |
|
Returns the total time taken to scan across a |
|
Returns the total jump length across the |
|
Returns the total path length across the |
|
Returns the total time taken to scan across a |
Classes
|
Basic Iterator which parses through both a list of |
The LaserState Class is a simple structure used for storing the state of the current exposure point at time \(t\) including the position and the active |
|
|
|
|
The Scan Iterator class provides funtionality to iterate at a variable |
|
ScanVectorIterator provides an iterator that will traverse across every scan vector (linearly) across both hatch and contour scan vectors for all layers passed into the constructor. |
|
The TimeNode class provides a structure for storing the pre-calculated time of a Layer or LayerGeometry structure, which is stored in |
pyslm.core Module
Classes
|
Special type indicating an unconstrained type. |
|
|
|
|
|
Part represents a solid geometry within the document object tree. |
pyslm.geometry Package
Functions
|
Create a dict from a list of Layers with a key (LayerId) and the corresponding |
|
Returns the |
|
Convenience function that locates the |
|
Returns the Model found from a list of |
|
Merges a list of Layers - typically from separate parts into a unified layer. |
|
Apply a transformation in-situ to |
|
Apply a translation in-situ to |
Classes
A |
|
|
ContourGeometry represents a |
|
HatchGeometry represents a |
|
The Header provides basic information about the machine build file, such as the name of the file ( |
|
A Layer represents a slice in the printing process for L-PBF. |
|
A Layer Geometry is the base class type used for storing a group of scan vectors or exposures. |
|
A Model represents a parametric group or in practice a part which contains a set unique and assignable |
ModelValidator takes the data structures in pyslm.geometry such as a list of |
|
|
PointsGeometry represents a |
pyslm.hatching Package
Functions
|
Approximate a polygonal chain with the specified tolerance. |
|
Returns scaled closed paths from clipper paths |
|
Utility to reshape a 3D hatch vector array of shape (n,2,2) into a flat 2D array to allow manipulation of individual vectors. |
|
A utility method to return a list of exposure points given a |
|
Utility method to check if the numpy array is a valid hatch array |
|
Converts a list of paths to clipper format input |
|
Converts closed paths to Shapely polygons with both exterior and interior boundaries. |
|
Converts a Shapely Polygon or MultiPolygon to a list of paths |
|
Simplify the boundaries of paths using Douglas-Peucker algorithm provided by the scikit-image library or an internal method within shapely. |
|
Utility to reshape a flat 2D hatch vector array into a 3D array to allow manipulation of individual vectors |
Classes
Sort method flips pairs of scan vectors so that their direction alternates across adjacent vectors. |
|
|
Special type indicating an unconstrained type. |
The BaseHatcher class provides common methods used for generating the 'contour' and infill 'hatch' scan vectors for a geometry slice typically a multi-polygon region. |
|
The class extends the standard |
|
|
Sort method flips all pairs of scan vectors so that their direction alternates across the input |
|
The greedy sort approach is a heuristic approach to sorting the scan vectors based on the current hatch angle specified in |
Sort method flips pairs of scan vectors so that their direction alternates across adjacent vectors. |
|
|
The class provides a generic Hatcher 'recipe' with standard parameters specified for defining the hatch across regions. |
The InnerHatchRegion class provides a representation for a single sub-region used for efficiently generating various sub-scale hatch infills. |
|
|
Island represents a square sub-region containing a series of orthogonal hatches which represents a typically a checkerboard scan strategy. |
IslandHatcher extends the standard |
|
|
A linear sort approaches to sorting the scan vectors based on the current hatch angle specified in |
The Stripe Hatcher extends the behavior of the standard |
|
Method simply passes the hatch vectors in their current form. |
pyslm.support Package
Functions
|
Provides a support structure cost using ray projection from the overhang regions which allows for self-intersection checks. |
|
This method to approximate the surface area, projects a single ray \((0,0,-1)\), form each triangle in the overhang mesh -originating from the centroid or optionally each triangle vertex by setting the |
|
The support moment area is a metric, which projects the distance from the base-plate (\(z=0\)) for each support surface multiplied by the area. |
|
Extrudes a set of connected triangle faces into a prism. |
|
Generates the height map of the upper and lower depths. |
|
Generates the height map of the upper and lower depths. |
|
Returns a list of connected faces :type mesh: |
|
The support area is a metric of the total area of support surfaces, including the flattened or projected area. |
|
Utility which returns the inverse projection of the faces relative to the +ve Z direction in order to isolate side faces. |
|
Gets the overhang mesh from a |
|
Returns the support angles for each triangular face normal. |
|
|
|
Translate by an offset (x, y, z) . |
Classes
The BaseSupportGeneration class provides common methods used for generating the support structures ( |
|
|
The BlockSupportBase is a base class representing a single support volume region constructed by an extruded overhang surface region, that may intersect with the build platform (\(z=0\)) or self-intersect with the original mesh of the |
The BlockSupportGenerator class provides common methods used for generating the 'support' structures typically used in Additive Manufacturing. |
|
|
Represents a block support that internally generates a grid truss structure representing the support structure. |
The GridBlockSupportGenerator class provides common methods used for generating the 'support' structures typically used in Metal Additive Manufacturing for block polygon regions. |
|
|
The Support Structure is the base class representing all definitions of support structures used in PySLM. |
pyslm.visualise Module
Functions
|
Returns the contours from boundaries extracted from exterior and interior paths of shapely geometry. |
|
Plots the all the scan vectors (contours and hatches) and point exposures for each Layer Geometry in a Layer using Matplotlib. |
|
Plots an effective heat map given the exposure points and at a given z position. |
|
Plots a list of |
|
Helper method for plotting polygons (numpy coordinates) and those composed of Python lists. |
|
Plots sequentially the all the scan vectors (contours and hatches) for all Layer Geometry in a Layer using Matplotlib. |