Skip to content
This repository has been archived by the owner on Feb 11, 2024. It is now read-only.

New Feature: Quick Select #18

Merged
merged 4 commits into from
Sep 23, 2017
Merged

Conversation

Henry00IS
Copy link
Collaborator

Previously you had to select each face you wanted to use individually until your finger cramped:
previously

Now you just hold shift, press the left mouse button and move over the faces you want to select:
quickselect

@Henry00IS Henry00IS closed this Sep 23, 2017
@Henry00IS Henry00IS deleted the QuickSelect branch September 23, 2017 20:26
@Henry00IS Henry00IS restored the QuickSelect branch September 23, 2017 20:27
@Henry00IS Henry00IS reopened this Sep 23, 2017
Polygon polygon = selectedSourcePolygons[polygonIndex];
Brush brush = csgModel.FindBrushFromPolygon(polygon);

// todo: I don't understand... are the normals simply inverted due to some math bug elsewhere? Inverting my logic depending on the CSG Mode fixes it...
Copy link
Owner

Choose a reason for hiding this comment

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

This is the correct logic, as you're comparing source polygons rather than built polygons you're working with the brush polygons which always point outwards regardless of if they're subtractive or not. It's the build process itself which is responsible for making the subtracted faces have the correct normal. This code looks fine as-is but it would be good to remove the TODO before merging

Copy link
Owner

@sabresaurus sabresaurus left a comment

Choose a reason for hiding this comment

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

Firstly thanks for your hard work, all three changes are great additions and will help a lot of people! I'm happy to merge this PR as-is, but if you want to remove the TODO comment prior to merge let me know. In particular the Finding Hidden Faces idea is really inspired.

For future PRs it would be better to branch from master for each feature and create the PR for each feature branch so that features can be reviewed/merged in isolation

Thanks!
Barnaby

@sabresaurus sabresaurus merged commit 59df1fa into sabresaurus:master Sep 23, 2017
@Henry00IS Henry00IS deleted the QuickSelect branch September 23, 2017 23:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants