Skip to content
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

directional tagging #101

Open
simbilod opened this issue Dec 8, 2024 · 0 comments
Open

directional tagging #101

simbilod opened this issue Dec 8, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@simbilod
Copy link
Owner

simbilod commented Dec 8, 2024

add a way to tag surfaces of entities depending on their normal direction

e.g.

PolySurface(...,
        physical_name="physical",
        prefix_to_normalspec = {
"north_": [NormalSpec(vector=(0,1), angle_tol=1)]
}
    )

should return interfaces where "physical" is replaced by "north_physical" if the line normal falls within 1 degree of planar angle of the (0,1) vector

or

Prism(...,
        physical_name="physical",
        prefix_to_normalspec = {
"top_": [NormalSpec(vector=(0,0,1), angle_tol=1)],
"sidewall_": [NormalSpec(vector=(cos(theta),sin(theta,0), angle_tol=88) for theta in [0, 90, 180, 270]],
}
    )

should return interfaces where "physical" is replaced by "top_physical" if the surface normal falls within 1 degree of solid angle of the (0,0,1) vector and "sidewall_physical" if the surface normal falls within 88 degree solid angle of any east, west, north, or south vector

Ideally, ResolutionSpecs can also filter by direction like this

@simbilod simbilod added the enhancement New feature or request label Dec 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant