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/hatching #1664

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Feature/hatching #1664

wants to merge 1 commit into from

Conversation

ijlal99
Copy link
Collaborator

@ijlal99 ijlal99 commented Sep 10, 2024

Hi @MichalDybizbanskiCreoox!

I have implemented somewhat the basics of what we discussed for the hatching branch.

Right now, I am using materials that are already provided by xeokit and I'd suggest that we should keep it that way instead of developing hatching patterns. I am struggling to create different type of materials for each object in the scene model, the baseColor does not seem to be effecting the materials. However, I have confirmed that the sectionCapsPlugin is correctly reading those materials and adding those to section caps.

I would like to suggest that we create a new material type for solids or basic colors.

@xeolabs maybe you can guide me to correctly implement different materials for each object, I am sure I am doing something wrong here.

examples/slicing/SectionCapsPlugin.html Fixed Show fixed Hide fixed
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>xeokit Example</title>
<link href="../css/pageStyle.css" rel="stylesheet" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/js/all.min.js"></script>

Check warning

Code scanning / CodeQL

Inclusion of functionality from an untrusted source Medium

Script loaded from content delivery network with no integrity check.
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>xeokit Example</title>
<link href="../css/pageStyle.css" rel="stylesheet"/>
<script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/js/all.min.js"></script>

Check warning

Code scanning / CodeQL

Inclusion of functionality from an untrusted source Medium

Script loaded from content delivery network with no integrity check.
@ijlal99
Copy link
Collaborator Author

ijlal99 commented Oct 3, 2024

@MichalDybizbanskiCreoox please have a look at the PR when you some time now. I believe I have implemented everything apart from calculating intersections with a plane instead of a box.

@xeolabs do you think we can beta release this feature or maybe I should first implement calculation of the intersecting box based on the bounding box of the scene?

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

Successfully merging this pull request may close these issues.

1 participant