AB4D Forum
How to get a mesh and get mesh points - Printable Version

+- AB4D Forum (https://forum.ab4d.com)
+-- Forum: Products Forums (https://forum.ab4d.com/forumdisplay.php?fid=4)
+--- Forum: Viewer3ds and Ab3d.Reader3ds (https://forum.ab4d.com/forumdisplay.php?fid=5)
+--- Thread: How to get a mesh and get mesh points (/showthread.php?tid=4438)



How to get a mesh and get mesh points - kanta8819@cadian.com - 02-14-2024

How to get a mesh and get mesh points

I am trying to create a triangular mesh on the web screen using Ab3d.Reader3ds.

thank you



RE: How to get a mesh and get mesh points - abenedik - 02-14-2024

Hm, what does "web screen" mean? You cannot use Ab3d.Reader3ds in a web application because Ab3d.Reader3ds requires WPF.


But you can get the meshes of the read objects in a WPF application and with Ab3d.Reader3ds in the following way:
- the ReadFile method returns a ModelGroup3D object
- go through each child object in ModelGroup3D.Children collection
- if the child object is ModelGroup3D, then go through its Children...
- if the child object is GeometryModel3D than cast its Geometry to MeshGeometry3D. There you will have Positions, Normals, TextureCoordinates and TriangleIndices collections.


RE: How to get a mesh and get mesh points - kanta8819@cadian.com - 02-16-2024

자세한 답변 감사드립니다.