Skip to content

Add Parameterization intervals to all primitives #346

@jonahrb

Description

@jonahrb

📝 Description of the feature

Parameterization intervals are the acceptable range of values for U and V parameters. The intervals are different depending on the primitive shape. It is useful information to know for beginners or people who are unsure of the acceptable ranges.

Example for Sphere:
u: [0, 2*pi]
v: [-pi/2, pi/2]

💡 Steps for implementing the feature

Add a method get_parameterization() to each primitive (or its Evaluation, not sure yet) that returns a dict(str -> tuple) like {"u": tuple(0, pi), "v": tuple(-pi/2, pi/2)}

Curves only have one parameter, in which case only a tuple would need to be returned

🔗 Useful links and references

No response

Metadata

Metadata

Assignees

Labels

enhancementNew features or code improvements

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions