File indexing completed on 2026-04-10 07:50:28
0001
0002 """
0003 U4SolidMakerTest.py
0004 ====================
0005
0006 """
0007 import numpy as np, pyvista as pv
0008 from opticks.ana.fold import Fold
0009 from opticks.ana.pvplt import pvplt_show, pvplt_viewpoint
0010 SIZE = np.array([1280, 720])
0011
0012 if __name__ == '__main__':
0013 f = Fold.Load("$FOLD/$SOLID",symbol="f")
0014 print(repr(f))
0015
0016 label = "U4SolidMakerTest.py SOLID %s : %s " % (f.NPFold_meta.SOLID, f.NPFold_meta.desc)
0017 pd = pv.PolyData(f.vtx, f.fpd)
0018
0019 pl = pv.Plotter(window_size=SIZE*2)
0020 pvplt_viewpoint(pl)
0021
0022 pl.add_text("%s" % label, position="upper_left")
0023 pl.add_mesh(pd, opacity=1.0, show_edges=True, lighting=True )
0024 pl.show_grid()
0025
0026 pvplt_show(pl)
0027 pass
0028
0029