Page 1 of 1

Coordinate request 2.14.alpha vs 2.13.2

Posted: Fri Sep 06, 2024 10:26 am
by mariolino
hello Daniel,

please note that with python inside CC 2.13.2 the request for point coordinates via the following code works, whereas in version CC 2.14.alpha for all coordinates only one value is always returned (perhaps the first....)
All the codes I have written now do not work inside CC 2.14.alpha ..... is it possible to do something ?

thanks
Mario

Code: Select all

import pycc
import numpy as np
cc = pycc.GetInstance()
entities = cc.getSelectedEntities()
if len(entities) != 1:
    print("\nselect point cloud")
else:
    entity = entities[0]
    
    if isinstance(entity, pycc.ccPointCloud):
        cloud_coordinates = np.array(entity.points())
        
        print("\ncoords:")
        for point in cloud_coordinates:
            print(f"({point[0]}, {point[1]}, {point[2]})")
    else:
        print("\nEntity is not a point cloud")

Re: Coordinate request 2.14.alpha vs 2.13.2

Posted: Sat Sep 07, 2024 8:40 am
by daniel
Hello, is it with CloudCompy or with the Python plugin within CloudCompare?

These are 2 distinct project from CloudCompare, so it may be more efficient to post this question on their respective github page.

Re: Coordinate request 2.14.alpha vs 2.13.2

Posted: Mon Sep 09, 2024 7:19 am
by mariolino
the problem is with

CloudCompare Python Plugin by Thomas Montaigu

thanks

Re: Coordinate request 2.14.alpha vs 2.13.2

Posted: Mon Sep 09, 2024 10:01 am
by daniel

Re: Coordinate request 2.14.alpha vs 2.13.2

Posted: Mon Sep 30, 2024 11:13 am
by mariolino
hi Daniel,

now with 2.14 built 29/9/2024
working correctly

Thnaks
Mariolino

Re: Coordinate request 2.14.alpha vs 2.13.2

Posted: Mon Sep 30, 2024 2:19 pm
by daniel
Thanks for the heads up!