Provide indices
See original GitHub issueHey @vpenades !
I’m currently porting some code from BabylonJS’s polygonMesh class to C#, actually this piece of code here: https://github.com/BabylonJS/Babylon.js/blob/8aae1ec1c954c8e7a5dd5062dfabf33334db437b/src/Meshes/polygonMesh.ts#L245
It is extruding a polygon. They set positions, normals, uvs and indices.
From what I understand, the MeshBuilder
allows us to use VertexPositionNormal
(positions and normals), but that does not include indices. Is there any way to provide indices in the MeshBuilder? Or could you perhaps point me in the right direction?
Thnx,
Michel
Issue Analytics
- State:
- Created 4 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
What Is an Index? Examples, How It's Used, and How to ...
An index measures the performance of a basket of securities intended to replicate a certain area of the market, such as the Standard...
Read more >What is an Index? | S&P Dow Jones Indices
Indices provide both real-time information about the health of financial markets and a regularly updated snapshot of market direction. When equity indices ......
Read more >What are Indices? How to Trade an Index | IG International
When you trade with us, there are three main ways to get exposure to an index's price – via cash indices, index futures...
Read more >What Is an Index and How to Invest in One
Index funds and ETFs are baskets of stocks that offer other securities that you can invest in all at once. These funds will...
Read more >Index Definition & Meaning
to provide with an index. b. : to list in an index. all persons and places mentioned are carefully indexed. 2. : to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@promontis There’s several cases that could benefit from supporting polygons:
But in the end, any “AddPoygon” method ends calling AddTriangle… and I I want to support polygons, I need to support all the cases, not only the easy cases… and there’s a lot of really difficult cases, because it is not uncommon to have to deal with malformed polygons, for which I would have to check the malformation, and report it as an error.
So I am at a point in which I have to choose between keeping the feature (and dedicate time to mainain it)… or move to more gltf related features.
@promontis In retrospect, the ear clipping algorythm is not that complex… I gave it a try and I was able to work it out in a short time… I’ve just commited the changes.