PlaneWithHole

class marxs.math.geometry.PlaneWithHole(kwargs)[source]

Bases: FinitePlane

Attributes Summary

inner_factor

outer_factor

shape

Methods Summary

inner_display(display)

inner_shape(display)

outer_display(display)

outer_shape(display)

triangulate([display])

Return a triangulation of the aperture hole embedded in a square.

Attributes Documentation

inner_factor = 0
outer_factor = 3
shape = 'triangulation'

Methods Documentation

inner_display(display)[source]
inner_shape(display)[source]
outer_display(display)[source]
outer_shape(display)[source]
triangulate(display={})[source]

Return a triangulation of the aperture hole embedded in a square.

The size of the outer square is determined by the 'outer_factor' element in self.display.

Returns

xyznp.array

Numpy array of vertex positions in Euclidean space

trianglesnp.array

Array of index numbers that define triangles