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

2DSE: Hidden surface removal and optimized NoCSG. #97

Merged
merged 1 commit into from
Apr 27, 2018

Conversation

Henry00IS
Copy link
Collaborator

I had this thought in the back of mind that it should be possible to detect what surfaces are hidden and to exclude those automatically. I just had to try it.

Revolved box shape in NoCSG

By excluding hidden surfaces it automatically optimizes NoCSG brushes the same way additive brushes would have. At first I wanted to make this a special feature just for NoCSG brushes. But it turns out it also excludes a couple faces that CSG doesn't exclude due to floating point precision errors. This is especially noticeable with complex revolved shapes.

Couple examples of excluded faces

So this hidden surface removal algorithm is now a default part of the brush building algorithm.

@Henry00IS Henry00IS merged commit 37ff219 into sabresaurus:master Apr 27, 2018
@Henry00IS Henry00IS deleted the 2DSEHidSurfRem branch April 27, 2018 14:30
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.

1 participant