RMF
geometry.py
1## \example geometry.py
2# Show creation of geometry in an RMF
3
4import RMF
5
6tfn = RMF._get_temporary_file_path("aliases.rmf")
7print("File is", tfn)
8
10f.add_frame("root", RMF.FRAME)
11
12r = f.get_root_node()
13
14bf = RMF.BallFactory(f)
15cf = RMF.CylinderFactory(f)
16sf = RMF.SegmentFactory(f)
17
18b = bf.get(r.add_child("ball", RMF.GEOMETRY))
19b.set_radius(1)
20b.set_coordinates(RMF.Vector3(0, 0, 0))
21
22c = cf.get(r.add_child("cylinder", RMF.GEOMETRY))
23c.set_radius(.5)
24c.set_coordinates_list([RMF.Vector3(0, 0, 0), RMF.Vector3(5, 5, 5)])
FileHandle create_rmf_file(std::string path)
Create an RMF from a file system path.