简体   繁体   中英

How do you convert XAML 3d object postitions, normals texture coordinates into C#

So I have a 3d object that I created and imported into XAML format and into Viewport3d. We have another C# object that is used from a book. The issue is that it is a parent object and trying to put the code behind file under the new object in C# creates a parent vs. parent conflict. I decided to make a c# class out of it as I need multiple instances of the object. I've been translating all the XAML code to C# but I'm stuck at the positions, normals, & texture coordinates of the XAML object.If there was an easier workaround instead of translating it, it would make my day. Can anyone help please? It would be much appreciated.

If you don't want to convert it you can parse the XAML to an object using the XamlReader class which provides parsing methods.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM