Where is the format of an exported Points file documented?

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
Post Reply
keithsloan52
Veteran
Posts: 2756
Joined: Mon Feb 27, 2012 5:31 pm

Where is the format of an exported Points file documented?

Post by keithsloan52 »

Where is the format of an exported Points file documented?

I export a points cloud and it looks like

Code: Select all

# ASCII
6.66134e-16 -4.44089e-16 -30
2.44052 4.8342e-16 -29.0929
4.89042 2.0422e-15 -26.1678
7.07107 1.04057e-15 -21.2132
8.7226 4.0844e-15 -14.6713
9.69762 3.86736e-15 -7.32157
10 1.77636e-15 -9.86076e-32
5.03195e-16 3.41853e-16 -30
I have a program that creates a point cloud for a different application it looks like

Code: Select all

OFF
8194 16384 16388
0.5773502691896258 0.5773502691896258, 0.5773502691896258
-0.5773502691896258 -0.5773502691896258, 0.5773502691896258
-0.5773502691896258 0.5773502691896258, -0.5773502691896258
0.5773502691896258 -0.5773502691896258, -0.5773502691896258
0.0 1.0, 0.0
-1.0 0.0, 0.0
0.0 0.0, 1.0
0.0 -1.0, 0.0
1.0 0.0, 0.0
0.0 0.0, -1.0
0.32505758367186816 0.8880738339771151, 0.32505758367186816
0.0 0.7071067811865475, 0.7071067811865475
0.32505758367186816 0.32505758367186816, 0.8880738339771151
-0.7071067811865475 0.7071067811865475, 0.0
-0.7071067811865475 0.0, 0.7071067811865475
-0.8880738339771151 -0.32505758367186816, 0.32505758367186816
-0.32505758367186816 -0.32505758367186816, 0.8880738339771151
-0.32505758367186816 0.8880738339771151, -0.32505758367186816
-0.8880738339771151 0.32505758367186816, -0.32505758367186816
0.7071067811865475 0.0, 0.7071067811865475
0.8880738339771151 0.32505758367186816, 0.32505758367186816
I edited as follows and gave it a file extension of asc but nothing is displayed on import using the Points workbench

Code: Select all

# ASCII
# 8194 16384 16388
0.5773502691896258 0.5773502691896258, 0.5773502691896258
-0.5773502691896258 -0.5773502691896258, 0.5773502691896258
-0.5773502691896258 0.5773502691896258, -0.5773502691896258
0.5773502691896258 -0.5773502691896258, -0.5773502691896258
0.0 1.0, 0.0
-1.0 0.0, 0.0
0.0 0.0, 1.0
0.0 -1.0, 0.0
1.0 0.0, 0.0
0.0 0.0, -1.0
0.32505758367186816 0.8880738339771151, 0.32505758367186816
0.0 0.7071067811865475, 0.7071067811865475
0.32505758367186816 0.32505758367186816, 0.8880738339771151
-0.7071067811865475 0.7071067811865475, 0.0
-0.7071067811865475 0.0, 0.7071067811865475
-0.8880738339771151 -0.32505758367186816, 0.32505758367186816
-0.32505758367186816 -0.32505758367186816, 0.8880738339771151
-0.32505758367186816 0.8880738339771151, -0.32505758367186816
-0.8880738339771151 0.32505758367186816, -0.32505758367186816
0.7071067811865475 0.0, 0.7071067811865475
Had to add txt to file extension to load to forum
exportedPoints.asc.txt
(2.85 KiB) Downloaded 7 times
jeno
Veteran
Posts: 1820
Joined: Sun Jun 29, 2014 10:41 am

Re: Where is the format of an exported Points file documented?

Post by jeno »

keithsloan52 wrote: Sat Dec 03, 2022 2:24 pm Where is the format of an exported Points file documented?
I export a points cloud and it looks like

Code: Select all

# ASCII
6.66134e-16 -4.44089e-16 -30
...
I have a program that creates a point cloud for a different application it looks like

Code: Select all

OFF
8194 16384 16388
...
Afaik FC exports only plain XYZ coordinates of an vertex in one line separated by a blank.

Code: Select all

X Y Z
X Y Z
a.s.o
ObjectFileFormat contains data about vertices, faces and edges

cheers
keithsloan52
Veteran
Posts: 2756
Joined: Mon Feb 27, 2012 5:31 pm

Re: Where is the format of an exported Points file documented?

Post by keithsloan52 »

Still no luck with this version
PointFileEdited.asc.txt
(475.98 KiB) Downloaded 11 times
User avatar
Roy_043
Veteran
Posts: 8450
Joined: Thu Dec 27, 2018 12:28 pm

Re: Where is the format of an exported Points file documented?

Post by Roy_043 »

Get rid of the commas.
jeno
Veteran
Posts: 1820
Joined: Sun Jun 29, 2014 10:41 am

Re: Where is the format of an exported Points file documented?

Post by jeno »

keithsloan52 wrote: Sat Dec 03, 2022 5:36 pm Still no luck with this version
It works here flawlessly
keithsloan.png
keithsloan.png (83.39 KiB) Viewed 382 times
I tried also a surface reconstruction with meshlab (see part mesh)

cheers
Attachments
keithsloan.FCStd
(447.85 KiB) Downloaded 9 times
keithsloan52
Veteran
Posts: 2756
Joined: Mon Feb 27, 2012 5:31 pm

Re: Where is the format of an exported Points file documented?

Post by keithsloan52 »

jeno wrote: Sun Dec 04, 2022 7:54 am
keithsloan52 wrote: Sat Dec 03, 2022 5:36 pm Still no luck with this version
It works here flawlesslykeithsloan.png
I tried also a surface reconstruction with meshlab (see part mesh)

cheers
FreeCAD version?

I am

Code: Select all

OS: macOS 10.16
Word size of FreeCAD: 64-bit
Version: 0.20.29177 (Git)
Build type: Release
Branch: (HEAD detached at 0.20)
Hash: 68e337670e227889217652ddac593c93b5e8dc94
Python 3.9.13, Qt 5.12.9, Coin 4.0.0, Vtk 9.1.0, OCC 7.5.3
Locale: C/Default (C)
Installed mods: 
  * ImportNURBS 1.1.0
  * ImportExport_3DM 0.1.0
  * GDML 2.0.0
  * Alternate_OpenSCAD 1.0.0
  * toSketch 1.0.1
  * Curves 0.6.4
jeno
Veteran
Posts: 1820
Joined: Sun Jun 29, 2014 10:41 am

Re: Where is the format of an exported Points file documented?

Post by jeno »

keithsloan52 wrote: Sun Dec 04, 2022 8:25 am
jeno wrote: Sun Dec 04, 2022 7:54 am
keithsloan52 wrote: Sat Dec 03, 2022 5:36 pm Still no luck with this version
It works here flawlessly
I tried also a surface reconstruction with meshlab (see part mesh)

cheers
FreeCAD version?
I'm running on

Code: Select all

OS: Manjaro Linux (KDE/plasma)
Word size of FreeCAD: 64-bit
Version: 0.20.1.29410 (Git)
Build type: Release
Branch: makepkg
Hash: f5d13554ecc7a456fb6e970568ae5c74ba727563
Python 3.10.8, Qt 5.15.7, Coin 4.0.1, Vtk 9.1.0, OCC 7.6.3
Locale: German/Germany (de_DE)
Installed mods: 
  * Defeaturing 1.2.0
  * Curves 0.5.12
  * sheetmetal 0.2.58
cheers
keithsloan52
Veteran
Posts: 2756
Joined: Mon Feb 27, 2012 5:31 pm

Re: Where is the format of an exported Points file documented?

Post by keithsloan52 »

Roy_043 wrote: Sat Dec 03, 2022 5:56 pm Get rid of the commas.
Thanks
Last edited by keithsloan52 on Sun Dec 04, 2022 8:38 am, edited 1 time in total.
Post Reply