-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Description
Increasing access
This would make is easier to make completely custom 3D objects, by adding a new means of doing so.
Most appropriate sub-area of p5.js?
- Accessibility
- Color
- Core/Environment/Rendering
- Data
- DOM
- Events
- Image
- IO
- Math
- Typography
- Utilities
- WebGL
- Build process
- Unit testing
- Internationalization
- Friendly errors
- Other (specify if possible)
Feature request details
The function could have two version. addFace(indices)
, which takes a list of indices for the vertices you want to add. And add addFace(vectors)
, which takes in a list of vectors and automatically figures out which indices those vectors should be replaced with and extends the internal list of vertices for the geometry if necessary. I really want the latter one because it requires the least thought for me. And it's not too hard to use a JS object to accomplish this, so don't complain to me about it requiring a search through a list. It does not require one. Just use a JS object. Also also, I want to be able to input 4 indices / vectos at a time, and it will automatically sort them and split the quad into 2 triangles. How should they be sorted? I dunno, just pick some arbitrary rule. I just want to be able to use the function.