Show creation of geometry in an RMF.
Show creation of geometry in an RMF
import RMF
tfn = RMF._get_temporary_file_path("aliases.rmf")
print("File is", tfn)
f.add_frame("root", RMF.FRAME)
r = f.get_root_node()
bf = RMF.BallFactory(f)
cf = RMF.CylinderFactory(f)
sf = RMF.SegmentFactory(f)
b = bf.get(r.add_child("ball", RMF.GEOMETRY))
b.set_radius(1)
c = cf.get(r.add_child("cylinder", RMF.GEOMETRY))
c.set_radius(.5)
FileHandle create_rmf_file(std::string path)
Create an RMF from a file system path.