-
-
Notifications
You must be signed in to change notification settings - Fork 179
Accept a toNonIndexed prop for geometries or inline methods #1322
Copy link
Copy link
Open
Labels
coreIssues related to @tresjs/coreIssues related to @tresjs/corep3-significantHigh-priority enhancement (priority)High-priority enhancement (priority)
Description
Description
As a developer, I would like to have a toNonIndexed prop in my geometries. This prop should set the target geometries to no create indexes
OR
Attack the root issue and be able to use inline functions in our declarative components
Suggested solution
Example
<TresTorusGeometry :args="[1, 0.5, 16, 32]" ref="torus" toNonIndexed />
Alternative
We could add an optional prop and only add this prop. However, this would solve just one issue.
If we want to address the root problem, we should be able to call methods on our component.
For example:
computeLineDistances()
In practice, Tres.js doesn’t support calling this kind of method on our components, so we can’t do this.
<TresTorusGeometry :args="[1, 0.5, 16, 32]" ref="torus" computeLineDistances />
Or similar
Additional context
No response
Validations
- I agree to follow this project's Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
coreIssues related to @tresjs/coreIssues related to @tresjs/corep3-significantHigh-priority enhancement (priority)High-priority enhancement (priority)