trim module

Package for dealing with trimming the AmpObject mesh Copyright: Joshua Steer 2020, Joshua.Steer@soton.ac.uk

class trimMixin

Bases: object

Methods for trimming the AmpObject mesh

planarTrim(height, plane=2, above=True)

Trim the vertices using a flat plane, all vertices above plane will be trimmed

Parameters:
  • height (float) – Trim height, values above this will be deleted
  • plane (int, default 2) – plane for slicing

Examples

>>> from ampscan import AmpObject
>>> amp = AmpObject(filename)
>>> amp.planarTrim(100, 2)