Skip to content

Search Topo Faces and Topo Edges and create Labels #864

Answered by waltersma
dkowollik asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @dkowollik,

There is limited capability in the exposed API's to do this as of today. It is expected this is handled in the upstream geometry tools. The below example shows how you can use the get_bounding_box_of _zonelets method using meshed topo faces as the starting point. Here we create new labels "my_label" in each part with topo faces that have a bounding box with an xmin > 0.

Thanks.

from ansys.meshing import prime
from ansys.meshing.prime import lucid

prime_client = prime.launch_prime(
    prime_root=r"C:\Program Files\ANSYS Inc\v242\meshing\Prime"
)

model = prime_client.model
mesh_util = lucid.Mesh(model)

pipe_tee = prime.examples.download_pipe_tee_fmd()
mesh_util.read(pipe_…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@dkowollik
Comment options

@waltersma
Comment options

@dkowollik
Comment options

@waltersma
Comment options

Answer selected by waltersma
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants