# Save ply with normals

**URL:** <https://community.stereolabs.com/t/save-ply-with-normals/1809>\
**Category:** C#\
**Created:** [November 18, 2022, 3:24pm UTC](https://community.stereolabs.com/t/save-ply-with-normals/1809 "2022-11-18T15:24:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mcculleyc](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/m/85e7bf/32.png) [@mcculleyc](https://community.stereolabs.com/u/mcculleyc)\
**Post date:** [November 18, 2022, 3:24pm UTC](https://community.stereolabs.com/t/save-ply-with-normals/1809/1 "2022-11-18T15:24:56Z")

</div>

Is there a simple way to save a PLY with X,Y,Z AND NORMALS?

My goal is to grab an image and save the one image with X,Y,Z and normals. Currently I am having to re-create the normals in my application and its very time consuming.

---

<div class="post-metadata">

**Author:** ![BenjaminV](https://community.stereolabs.com/user_avatar/community.stereolabs.com/benjaminv/32/3863_2.png) [@BenjaminV](https://community.stereolabs.com/u/BenjaminV)\
**Post date:** [November 21, 2022, 8:37am UTC](https://community.stereolabs.com/t/save-ply-with-normals/1809/2 "2022-11-21T08:37:34Z")

</div>

Hi,

It’s not currently possible to directly generate a PLY file with both the X Y Z and the normals in a single image.

However, you can retrieve the X,Y,Z data and the normals in two separates images, using the `retrievemeasure` method.

You can chose what type of data to extract by changing the value of the enum “sl::MEASURE” :

- sl::MEASURE::XYZ for the 3D position and sl::MEASURE::NORMALS for the normals.

Best,  
Benjamin Vallon
