AB4D Forum

Full Version: How to display a simple point cloud in DXEngine
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am a complete newbie to ab4d and just want to display (x,y,z) points in a Forms window.  Ax example file of points is attached.

Is there a simple example showing how to use in a DXEngine Win Forms (the PixelVisual3D or whatever else is needed .....)?

Thanks in advance.
I see that you have already found the "Need to display a 3D cloud in a .NET window" forum thread (https://forum.ab4d.com/showthread.php?ti...07#pid5907) that provides some information on how to display point cloud.

To show that in WinForms application, please open the WinForms sample project (can be also get from GitHub: https://github.com/ab4d/Ab3d.DXEngine.WinForms.Sample). Strat the sample and check which DXEngine usage suites your application best (the recommended way is to use the ElementHost). 

Then just replace the content of the Create3DScene or CreateObjectsScene or any other method that defines the 3D objects by your code that creates the PixelVisual3D objects.

I see that the attached file has a very simple structure - to parse it you can use System.IO.File.ReadAllLines method and then split each line by fixed positions (using Substring method). After calling Trim on each part you can parse each part into double or float value.