Skip to content

Maint/add example for meshing mode #464

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 26 commits into
base: main
Choose a base branch
from

Conversation

prmukherj
Copy link
Collaborator

No description provided.

prmukherj and others added 22 commits June 21, 2024 12:29
Comment on lines +70 to +88
def plot_mesh(index, field_name, data):
raise RuntimeError("*****")
global mesh_data, active_window, overlay
if active_window is None:
return
if data is not None:
if index in mesh_data:
mesh_data[index].update({field_name: data})
else:
mesh_data[index] = {field_name: data}
if "vertices" in mesh_data[index] and "faces" in mesh_data[index]:
active_window.set_data(FieldDataType.Meshes, mesh_data)
graphics_windows_manager.refresh_windows(
session_id, [active_window_id], overlay=overlay
)
mesh_data = {}
overlay = True
else:
overlay = False
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@prmukherj The complex logic here deserves some explanatory comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants