Hi,
I used to be able to convert coordinates between barycentric and cartesian programmatically with the python module ‘wrap’. Given that WrapX is discontinued, how can I accomplish this in a batch? Thanks!
Best,
Hi,
I used to be able to convert coordinates between barycentric and cartesian programmatically with the python module ‘wrap’. Given that WrapX is discontinued, how can I accomplish this in a batch? Thanks!
Best,
Hi yubinx,
Unfortunately, for the latest version of Wrap 2020 and Wrap4D “Points Format” field still not scriptable and there are no easy ways to convert format from “Point on Triangle” to “Point on 3D” and backward.
Currently, there are no ways to export points to the file automatically using batch yet.
But if you want to only edit “Source” or/and “Points Format” inside your project, you can change some values (without opening Wrap) inside .wrap file using text editor:
Inside .wrap project you can find “nodeType”: “SelectPointPairs” and inside it:
“sourceLeft”: {
“value”: 1 means that points load from the file. Value 0 means “User Input” mode.
“pointsFormatLeft”: {
“value”: 0 means that points have “Point on Triangle” format. Value 1 means “Point on 3D” format.
Also, you can find out more about file formats here:
https://www.russian3dscanner.com/docs/Wrap/Nodes/SelectPointPairs/SelectPointPairs.html#file-format