Click here to Skip to main content
15,888,286 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I'm trying to draw 4 3D cubes in WPF.
When user click on first cube---create string (string a="abc")

When user click on second cube---create string (string b="def")

When user click on third cube---create string (string c="ghi")

When user click on fourth cube---create string (string d="klm")
Can somebody help me how to do this please.
I know that will be done using hittest...but don't know how to implement.
Please post a sample code.
Thanks
Posted
Updated 13-Apr-12 0:44am
v3

This is similar to Draw 3D model in C# windows application[^]

or is this the same OP ?
 
Share this answer
 
Comments
[no name] 8-Apr-12 6:39am    
Same OP with another account
Kuldeep B 8-Apr-12 7:54am    
Lakmraju I posted the code here

http://www.codeproject.com/Forums/1004257/Silverlight-WPF.aspx

Subject WPF3d
Please check and help me to implement hittest.....Please..
Kuldeep B 9-Apr-12 13:14pm    
Please help me developers.............Please..
Hey Friend my problem is solved after lots of searching .....

Thanks for your help.

Point mousePoint = e.GetPosition(mainViewport);
HitTestResult result = VisualTreeHelper.HitTest(mainViewport, mousePoint);
RayMeshGeometry3DHitTestResult mesh = result as RayMeshGeometry3DHitTestResult;


this is part of solution.....

Feeling happy...
 
Share this answer
 

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