Click here to Skip to main content
15,943,008 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How can I render a 3d cube which filled with a color that different than the color used to color the edges and rotate it using the mouse using C#?

What I have tried:

I tried some wpf code but I was not able to change the color of the edges and rotate it using the mouse, In fact I am not familiar with wpf
Posted
Comments
[no name] 8-Nov-22 23:09pm    
I could post a link to "Drawing a Cube in WPF", but I just couldn't be bothered.
Sabry1905 9-Nov-22 14:46pm    
And I don't care
Richard MacCutchan 9-Nov-22 4:12am    
You need to find a .NET library that provides 3D drawing support. So go to Google and start your search.
Sabry1905 9-Nov-22 14:49pm    
I already did, that is how I was able to draw the cube, put the light, orient the camera, my problem is to capture the mouse drag event and use it to have an axis of rotation then rotate the object.

If you have an answer, you are welcome to reply
Richard MacCutchan 10-Nov-22 3:54am    
Well even though I do not have an answer I am going to reply. I suggest you re-read your original message above and think how anyone could give a suggestion based on such a vague question.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900