Skip to content

Accept a toNonIndexed prop for geometries or inline methods #1322

@JaimeTorrealba

Description

@JaimeTorrealba

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    coreIssues related to @tresjs/corep3-significantHigh-priority enhancement (priority)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions