microsoft / microsoft/WPF-Samples
Why are there more TriangleIndices than Postions in resource whose key is CubeSide06
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 5.7k
- Forks
- 3.3k
- Avg merge
- 12d 8h
- Merged PRs (30d)
- 2
Description
the path is "Animation/AnimationExamples/App.xaml".
the code is below :
<MeshGeometry3D x:Key="CubeSide06"
TriangleIndices="0,1,2 3,4,5 6,7,8 9,10,11 "
Normals="-1,0,0 -1,0,0 -1,0,0 -1,0,0 -1,0,0 -1,0,0 "
TextureCoordinates="1,0 1,1 0,1 0,1 0,0 1,0 "
Positions="-0.5,-0.5,0.5 -0.5,-0.5,-0.5 0.5,-0.5,-0.5 0.5,-0.5,-0.5 0.5,-0.5,0.5 -0.5,-0.5,0.5" />
from my view the element count in Postions is 6 but in TriangleIndices there is 11 , isn`t it wrong?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with Animation/AnimationExamples/App.xaml and inspect the CubeSide06 MeshGeometry3D resource alongside the WPF MeshGeometry3D documentation. Run the Animation example and verify how TriangleIndices, Positions, Normals, and TextureCoordinates are interpreted. Done means confirming whether the sample is incorrect and, if so, identifying the specific correction needed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- computer-graphics, desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100