Module simpa.core

Class StlAperture

java.lang.Object
simpa.core.api.track.StlAperture
All Implemented Interfaces:
Aperture

public class StlAperture extends Object implements Aperture
Implementation of the Aperture interface that constructs its aperture from an STL file.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Initializes the aperture from an STL file.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    isInside(org.apache.commons.math3.geometry.euclidean.threed.Vector3D pos)
    Returns false when a given point is outside the volume.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • StlAperture

      public StlAperture(String stlFile)
      Initializes the aperture from an STL file.
      Parameters:
      stlFile - input STL file
  • Method Details

    • isInside

      public boolean isInside(org.apache.commons.math3.geometry.euclidean.threed.Vector3D pos)
      Description copied from interface: Aperture
      Returns false when a given point is outside the volume.
      Specified by:
      isInside in interface Aperture
      Parameters:
      pos - location to check.
      Returns:
      true if the location is inside the volume, false if not.