Update README.md

This commit is contained in:
2026-02-09 18:07:33 +01:00
Unverified
parent c541b71b8e
commit 0202fa47d2

View File

@@ -47,10 +47,10 @@ python 3d_renderer
You can define your own scene in `main` method of `App` class in `3d_renderer/app.py` file. You can define your own scene in `main` method of `App` class in `3d_renderer/app.py` file.
- Create object builder: `obj_builder1 = ObjectBuilder()` 1. Create object builder: `obj_builder1 = ObjectBuilder()`
- Add as many vertices to the object as you want: `va = obj_builder1.add_vertex(-1, 1, 1)` 2. Add as many vertices to the object as you want: `va = obj_builder1.add_vertex(-1, 1, 1)`
- Connect vertices to make edges: `obj_builder1.add_vertices_connection(va, vb)` 3. Connect vertices to make edges: `obj_builder1.add_vertices_connection(va, vb)`
- Build object and add it to the scene: `self.renderer.add_object(obj_builder1.build())` 4. Build object and add it to the scene: `self.renderer.add_object(obj_builder1.build())`
**Controls:** **Controls:**