Scene#
A genesis.Scene wraps every component of a simulation: a simulator (which holds the physics solvers), the entities you add, and a visualizer (which drives the viewer and the cameras). Almost everything you do happens through a scene.
SceneSceneScene.destroy()Scene.add_entity()Scene.add_stage()Scene.add_mesh_light()Scene.add_light()Scene.add_sensor()Scene.read_sensors()Scene.start_recording()Scene.add_camera()Scene.add_emitter()Scene.add_force_field()Scene.build()Scene.reset()Scene.get_state()Scene.register_pre_step_callback()Scene.step()Scene.stop_recording()Scene.draw_debug_line()Scene.draw_debug_arrow()Scene.draw_debug_frame()Scene.draw_debug_frames()Scene.draw_debug_mesh()Scene.draw_debug_sphere()Scene.draw_debug_spheres()Scene.draw_debug_box()Scene.draw_debug_points()Scene.draw_debug_frustum()Scene.draw_debug_trajectory()Scene.draw_debug_path()Scene.render_all_cameras()Scene.update_debug_objects()Scene.clear_debug_object()Scene.clear_debug_objects()Scene.dump_ckpt_to_numpy()Scene.save_checkpoint()Scene.load_checkpoint()Scene.uidScene.dtScene.tScene.substepsScene.requires_gradScene.is_builtScene.show_FPSScene.gravityScene.viewerScene.visualizerScene.simScene.cur_tScene.solversScene.active_solversScene.entitiesScene.entity_namesScene.get_entity()Scene.emittersScene.tool_solverScene.rigid_solverScene.kinematic_solverScene.mpm_solverScene.sph_solverScene.fem_solverScene.pbd_solverScene.segmentation_idx_dict
SimulatorSimulatorSimulator.build()Simulator.destroy()Simulator.reset()Simulator.reset_grad()Simulator.f_global_to_f_local()Simulator.f_local_to_s_local()Simulator.f_global_to_s_local()Simulator.f_global_to_s_global()Simulator.step()Simulator.process_input()Simulator.process_input_grad()Simulator.substep()Simulator.sub_step_grad()Simulator.substep_pre_coupling()Simulator.substep_pre_coupling_grad()Simulator.substep_post_coupling()Simulator.substep_post_coupling_grad()Simulator.add_grad_from_state()Simulator.collect_output_grads()Simulator.save_ckpt()Simulator.load_ckpt()Simulator.get_state()Simulator.set_gravity()Simulator.dtSimulator.substepsSimulator.sceneSimulator.gravitySimulator.requires_gradSimulator.n_entitiesSimulator.entitiesSimulator.substeps_localSimulator.cur_substep_globalSimulator.cur_substep_localSimulator.cur_step_localSimulator.cur_step_globalSimulator.cur_tSimulator.couplerSimulator.solversSimulator.active_solvers
MeshMeshMesh.convexify()Mesh.watertighten()Mesh.decimate()Mesh.remesh()Mesh.tetrahedralize()Mesh.particlize()Mesh.sample_point_cloud()Mesh.clear_visuals()Mesh.get_unique_edges()Mesh.get_inertial_info()Mesh.get_vert_adjacency()Mesh.copy()Mesh.from_trimesh()Mesh.from_attrs()Mesh.from_morph_surface()Mesh.set_color()Mesh.update_trimesh_visual()Mesh.apply_transform()Mesh.uidMesh.trimeshMesh.is_convexMesh.metadataMesh.vertsMesh.facesMesh.normalsMesh.surfaceMesh.uvsMesh.areaMesh.volume
ForceField