Model Trimming

I’m wondering if it’s possible for me to trim a 3D model within WebODM rather than my having to export it to Blender to do so? I have had a go with the clipping tools but not got it to work so far.

I can find nothing in the WebODM user guide.

Ideally, I would like to put a circle around the ortho view and trim off all outside of it.

Thanks

3 Likes

You can use my good friend the --boundary option!:
https://docs.opendronemap.org/arguments/boundary/

You’ll need to have the boundary file present at the beginning of processing, however, so you’ll need to re-process to have it all clipped to the boundary.

2 Likes

Sounds easier to edit in Blender? However, with that option, I can’t reload the files to then create an animation on the trimmed model as some files are not exported from Blender with the .obj one. Where does the boundary file come from? Is that like a GCP file made on site?

1 Like

Load your orthophoto into GIS software like QGIS, digitize the boundary you want in geojson, then reprocess the data while including the geojson.

1 Like

Some new skills to explore in due course :blush:

1 Like

So this will require two processing stages: the first to create an orthophoto which will then need to be worked on in QGIS, then reprocessed with the geojson file to produce the full model.

2 Likes

Not necessarily. That is one of the ways I approached it in the linked docs. Have you given it a perusal?

1 Like

Some of it. I’ve been looking at the map option but I think I need to set aside some time to get my head round how to do it.

From what I can see so far I create a boundary using the map site, export a geojson file from that and use that file (or state it’s path) in the processing settings to clip the result?

2 Likes

Yep! That’s the more accessible workflow of the two, I think.

1 Like

Tomorrow I’m going to get the drone images for another location so I will try the map method to trim it when I get to the construction stage. I’ll let you know how it goes.

2 Likes

Try drawing a polygon and saving the geojson file from here.
geojson.io

You need to rename it xxxgeo.json for use in WebODM, just put the file name in the boundary field before starting the task.

Or save this as Boscawen.json

{“type”:“FeatureCollection”,“features”:[{“type”:“Feature”,“properties”:{},“geometry”:{“type”:“Polygon”,“coordinates”:[[[-5.619435757398605,50.08994104360211],[-5.61949610710144,50.089879092486456],[-5.6195068359375,50.08982488519458],[-5.619488060474396,50.089770677841386],[-5.619439780712128,50.08973884174824],[-5.619372725486755,50.089714749555576],[-5.619308352470398,50.08970614519812],[-5.619226545095444,50.089695819967126],[-5.6191353499889365,50.08971044737704],[-5.619088411331177,50.08974400435939],[-5.619044154882431,50.08978702609723],[-5.619038790464401,50.08983521039779],[-5.619044154882431,50.08987823205374],[-5.619095116853714,50.08992813712629],[-5.619146078824997,50.089950508348835],[-5.6192198395729065,50.089979763008714],[-5.619289577007294,50.08996943783668],[-5.619382113218307,50.089966856543334],[-5.619435757398605,50.08994104360211]]]}}]}

1 Like