Skip to content

Commit

Permalink
fix: restore meshes in frame by frame update
Browse files Browse the repository at this point in the history
  • Loading branch information
Ipuch committed Nov 28, 2024
1 parent 7faf16f commit 7008f57
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 3 additions & 0 deletions pyorerun/biorbd_components/model_updapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,9 @@ def to_rerun(self, q: np.ndarray) -> None:
q: np.ndarray
The generalized coordinates of the model one-dimensional array, i.e., q.shape = (n_q,).
"""
for segment in self.segments:
segment.mesh.initialize()

for component in self.components:
component.to_rerun(q)

Expand Down
6 changes: 0 additions & 6 deletions pyorerun/phase_rerun.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,14 +234,8 @@ def rerun_with_chunks(
times=times,
components=chunk,
)
import time

for name, chunk in self.biorbd_models.to_chunk().items():
print(name, chunk)
# make 0.1 sec pause with python lib
# time.sleep(0.1)


rr.send_columns(
name,
times=times,
Expand Down

0 comments on commit 7008f57

Please sign in to comment.