Note
Go to the end to download the full example code.
Introducing Concavities#
This example shows how to introduce concavities in a model using the method from [RF22].

Model file icosahedron.obj not found in current model folder ('/Users/liamrobinson/Documents/maintained-research/mirage/mirage/resources/models'), checking model repository...
Attempting to download icosahedron.obj and its associated material file from the model repository...
Requesting: https://raw.githubusercontent.com/ljrobins/mirage-models/main//Regular/icosahedron.obj
Requesting: https://raw.githubusercontent.com/ljrobins/mirage-models/main//Regular/icosahedron.mtl
Model files were downloaded successfully!
import numpy as np
import pyvista as pv
import mirage as mr
import mirage.vis as mrv
obj = mr.SpaceObject('icosahedron.obj', identifier='goes 15')
disp_dir = np.array([[1.0, 1.0, 1.0]]) / np.sqrt(3)
psi_est = 45
obj = obj.introduce_concavity(disp_dir, psi_est, linear_iter=3)
pl = pv.Plotter()
mrv.render_spaceobject(pl, obj)
pl.camera.position = (4.0, 0.0, 0.0)
pl.show()
Total running time of the script: (0 minutes 2.562 seconds)