Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
There are Primitives types enum in DirectX that contains Point, Line, LineList, LineStrip, Triangle, TriangleFan, TriangleStrip...

I can find only Triangle in WPF 3D.

Then how to draw point, line , or wired object using WPF.

If I do not supply material then I cannot see anything

Thanks
Posted

1 solution

The answer is simple: you can't.

At least not the easy way. The Viewport3D control makes it possible to display 3D content in simple way, but there are many restrictions. For example it's not possible to draw lines (thus it's not possible to render a wireframe object, although there are workarounds) and basically all you can use are triangles...

You can use the D3DImage class to host Direct3D content in a WPF application and have full control over the rendering process.
 
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