[Plugin] Pic2Shape - Extracting contours from images

Pic2Shape extracts contours from images as faces / edges geometry.

The contouring is based on pixel transparency, which can come from the image itself (in PNG), or from filtering in / out colors. The geometry can be generated as:

  • Just contours
  • Faces with default material
  • Faces textured with the image
  • FaceMe component

You can also extract contours from textured surfaces. The geometry will be generated as faces and edges following the surface.


Here is a video giving an overview of the plugin.

15 Likes

OMG awesome - I’d love to try this out on some tree images and get some decent shadows! :slight_smile:

the other day when you used it to help someone I spent 20 min looking around for it just to finally realise it was unpublished.

Justin wants trees. I’m thinking railings :smiley:

1 Like

Does @JustinTSE want trees? I would think he would want his default self with dog scale figure :wink:

Awesome extension! :ok_hand:

Very nice work, sir.

Genius!!! :clap:t2: :clap:t2: :clap:t2:

Yes

ALSO YES :rofl:

2 Likes

I was about to try this extension out - using SketchUp 2025 Pro, but the extension doesn’t seem to process the image. Image size 155x50 mm / 300 pixel/inch.

After 10 minutes still at Initialization…

Is there any guideline on max/ recommended picture size?

Thank you

update: I succeeded with the plugin, when I opened the image in a new file.

The original image was on a bent plane. I suppose that was the problem…

I had Pic2Shape installed and had been using it quite easily. Then I had to remove all extensions in order to find which was causing conflicts with the Customize Toolbar in Sketchup for Mac (it turned out it was caused by Select Toys and 1001bit Tools). After I replaced all extensions and updated Sketchup to 25.0.659 Pic2Shaped stopped working. I tried to reinstall it a couple of times but nothing works. The files are in the Plugins folder but I do not see the extension anywhere.

Could there be a conflict with the latest Sketchup build?

EDIT: Very odd indeed! I could not install it using the Extension Manager > Install Extension path but was able to do it through Sketchucation.

All Fredo’s extension should be installed using the SketchUcation Extension Store utility. It has always been this way.


BTW, you do not need to uninstall extensions in order to find a culprit extension that causes issues. You can usually just switch them off in the Extension Manager and then restart SketchUp.

An alternative is to open the "Plugins" folder (with SketchUp closed) and add a "!" (exclamation character) to the end of the ".rb" registration scripts (so they read ".rb!") to switch them off manually.

Then when you find the “culprit” extension leave them off and switch the others back on,

You may have solved the problem by now, but Pic2Shape requires LibFredo6: v15.2a or above. It could be that you hadn’t added that back in.

Thanks, Dan! This thing of removing all extensions comes from the old days of Mac OS, long before Sketchup even existed. I will follow your suggestion next time.

You may have solved the problem by now, but Pic2Shape requires LibFredo6: v15.2a or above. It could be that you hadn’t added that back in.

I have 15.4a installed.