Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

point clouds in folders #110

Open
Ellana17 opened this issue Jun 21, 2024 · 2 comments
Open

point clouds in folders #110

Ellana17 opened this issue Jun 21, 2024 · 2 comments

Comments

@Ellana17
Copy link

Bonjour,

Avec mon script python, je découpe plusieurs fichiers ce qui me donne parfois une dizaine de nuages de points. Je voudrai que ces nuages de points s'affichent dans des dossiers comme lorsqu'on importe les fichiers directement depuis l'interface CloudCompare, comment faire avec python ?
image
Désiré :
image

Code utilisé:

def cloud(l1,l2,T,en_tete,idx_sf,output_file_T):
    point_cloud=pycc.ccPointCloud(T[l1:l2,1].astype(pycc.PointCoordinateType), T[l1:l2,2].astype(pycc.PointCoordinateType), T[l1:l2,3].astype(pycc.PointCoordinateType))    
    for l in range(len(idx_sf)):
        idx = point_cloud.addScalarField(en_tete[idx_sf[l]], T[l1:l2,idx_sf[l]]) # utile pour le minmax
        point_cloud.getScalarField(point_cloud.getScalarFieldIndexByName(en_tete[idx_sf[l]])).computeMinAndMax()
    point_cloud.setName(output_file_T) 
    CC.addToDB(point_cloud)

Merci d'avance

@tmontaigu
Copy link
Owner

A cause d'un bug ce n'est pas encore possible de faire ca, je vais tenter de la corriger

@Ellana17
Copy link
Author

Merci beaucoup ce serait super

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants