Closed IhorKram closed 1 year ago
Hello @IhorKram ,
You have two possibilities when calling ScanToMesh
algorithm in script.
var myCloud = SCloud.All(1)[0];
var res = SPoly.ScanToMesh(
myCloud,
SPoly.BLK360,
true,
false);
if(res.ErrorCode == 0) { res.Poly.AddToDoc(); res.Poly.SetPolyRepresentation(SPoly.POLY_TEXTURE); }
2. Create a mesh by specifying each parameter (same as Advanced settings):
```js
var myCloud = SCloud.All(1)[0];
var res = SPoly.ScanToMesh(
myCloud,
25,
0.05,
0.2,
0.01,
true);
if(res.ErrorCode == 0)
{
res.Poly.AddToDoc();
res.Poly.SetPolyRepresentation(SPoly.POLY_TEXTURE);
}
Hope it helps.
Hey
Want to write a script to extract surface features
Like paths, curb , linemarking, fences , building footprints , trees , poles Etc
Can anyone help ?
From: 3DReshaper @.> Sent: Thursday, June 8, 2023 10:30 pm To: Cyclone3DR/Scripts @.> Cc: Subscribed @.***> Subject: Re: [Cyclone3DR/Scripts] Can you provide some examples of using ScanToMesh? (Issue #4)
Hello @IhorKramhttps://github.com/IhorKram ,
You have two possibilities when calling ScanToMesh algorithm in script.
var myCloud = SCloud.All(1)[0]; var res = SPoly.ScanToMesh( myCloud, SPoly.BLK360, true, false);
if(res.ErrorCode == 0) { res.Poly.AddToDoc(); res.Poly.SetPolyRepresentation(SPoly.POLY_TEXTURE); }
var myCloud = SCloud.All(1)[0]; var res = SPoly.ScanToMesh( myCloud, 25, 0.05, 0.2, 0.01, true);
if(res.ErrorCode == 0) { res.Poly.AddToDoc(); res.Poly.SetPolyRepresentation(SPoly.POLY_TEXTURE); }
Hope it helps.
— Reply to this email directly, view it on GitHubhttps://github.com/Cyclone3DR/Scripts/issues/4#issuecomment-1582496419, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BAC532NJFBBLSKM4AJVQPK3XKHAUZANCNFSM6AAAAAAY6AIUTY. You are receiving this because you are subscribed to this thread.Message ID: @.***>
Hello @Gaztwin86 ,
It seems it's an independent topic. Please open a new issue.
I have noticed, that mesh that I created manually inside the app is much better than the one which I created by code (using the ScanToMesh function). I think that I did something wrong. It would be good to have some examples, to see what I did wrong. Can you please provide some examples of how to use ScanToMesh?