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

[Feature Request] Support Multiple Region Brushes #390

Open
4LT opened this issue Oct 30, 2023 · 2 comments
Open

[Feature Request] Support Multiple Region Brushes #390

4LT opened this issue Oct 30, 2023 · 2 comments

Comments

@4LT
Copy link
Contributor

4LT commented Oct 30, 2023

I was playing around with region brushes, discovered that it only supports cases of single region brushes:

---- LoadMapFile ----
�[38;2;255;000;000m************ ERROR ************
ParseBrush: Multiple region brushes detected; newest at }
�[0m#### Finished with exit status 1

I understand this is beyond the scope of the original intent of this tool, but I was hoping that I could include that I could include an L-shaped region of my map by using two intersecting region blocks (i.e. the CSG union of the two brushes).

I get that I could accomplish the same thing with a region and an antiregion brush, I just think it would be intuitive if it worked this way.

@Paril
Copy link
Collaborator

Paril commented Oct 30, 2023

The reason for this is that generating a region brush is a bit more complex (since the region brush is expanded into 6 brushes - a hollow box) and I'm not sure offhand how I would handle the case of generating more than one of them together.. probably some kind of CSG, I dunno.

Anti-regions are inherently more powerful because it doesn't have that limitation as the brush itself just goes from A to B without any additional processing.

@ericwa
Copy link
Owner

ericwa commented Oct 30, 2023

I forget if we have a “csg_subtract(brush list, brush list) -> brush list” in the codebase but I think we could just subtract all the region brushes from a solid box the size of the map?

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

No branches or pull requests

3 participants