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

editor.Brush-> List[geometry.Mesh] #181

Open
snake-biscuits opened this issue Feb 23, 2024 · 1 comment
Open

editor.Brush-> List[geometry.Mesh] #181

snake-biscuits opened this issue Feb 23, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request geometry feature related to extracting geo

Comments

@snake-biscuits
Copy link
Owner

snake-biscuits commented Feb 23, 2024

Visualising brushes would be really handy
Especially clips & triggers in map formats where they aren't renderable (IW & Titanfall engines)

Generating bounds for brushes would also be nice
Tho I think all brush representations have axial sides, which we can determine bounds from:

mins = sum((s.plane.normal * s.plane.distance for s in brush.sides[:6] if -1 in s.plane.normal), start=vec3())
maxs = sum((s.plane.normal * s.plane.distance for s in brush.sides[:6] if +1 in s.plane.normal), start=vec3())

Note: needs to be List[geometry.Mesh] to allow for multiple materials

@snake-biscuits snake-biscuits added enhancement New feature or request geometry feature related to extracting geo labels Feb 23, 2024
@snake-biscuits snake-biscuits self-assigned this Feb 23, 2024
@snake-biscuits
Copy link
Owner Author

I would also like a nicer __init__ for physics.Brush
utils.physics seems like the place to check convexity

Also:

SlicedBrush = namedtuple("SlicedBrush", ["front", "back"])

def slice(brush: Union[AABB, Brush], plane: Plane) -> SlicedBrush:
        ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request geometry feature related to extracting geo
Projects
None yet
Development

No branches or pull requests

1 participant