EnglishFrenchSpanish

OnWorks favicon

png23d - Online in the Cloud

Run png23d in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command png23d that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


png23d - PNG to 3D file conversion

SYNOPSIS


png23d [-V] [-v] [-f finish] [-o type] [-t transparency] [-l quantisation] [-w width] [-h
height] [-d depth] [-O optimisation] [-b complexity] [-m filename] input output

DESCRIPTION


png23d is a tool which converts a PNG image into a three dimensional file suitable for
modelling applications especially for 3D printers.

OPTIONS


-V Display the program version and exit.

-v Make the program produce verbose output.

-t The colour which is used for transparent output. Valid range is 0 to 255(default)
or 'x' to disable.

-l The number of levels into which the colour-space is divided. Valid range is
1(default) to 256. Note that as of version 1.0 not all output generators obey this
parameter or may use a different finish type to that specified if the parameter is
not 1.

-w The output target width (x dimension). The source PNG width is used by default.

-h The output target height (y dimension). Note most outputs will simply ignore this
parameter and retain the original image aspect ratio based on the width parameter.

-d The output target depth (z dimension) The number of levels specified is used as the
default.

-o Specifies the output type

pgm Output a PGM format bitmap. This can be used to verify the level and
quantisation parameters are set correctly.
rscad Output a scad format file for use with OpenSCAD. This file will be
comprised of a union of cubes. The finish cannot be controlled (it is raw
blocks) and the resulting scad object may be very complex.
scad Output a scad format file for use with OpenSCAD. This file will be
comprised of a single polyhedron mesh. For larger images this polygon will
be exceptionally complex and may contain many thousands of triangles.
stl Output a binary stereolithography format file. These files are comprised
of simple triangles, the output can be directly used by several 3D printing
systems. The generated meshes are a convex manifold but are not
simplified.
astl Same as the stl entry but generates a textural file instead of binary.

-f Specifies the finish out the output 3D mesh the default is cube which keeps all the
cube faces. The smooth option uses a marching square algotithm to gives sloped
edges and reduces jaggies. The rect finish is for the rscad output type only. The
surface type generates a simple heightmap surface.

-O Specify the mesh optimisation level of 0, 1(the default) or 2.

0 No mesh optimisation will be performed. This will be fast to execute but the
resulting mesh will be exceptionally complex and will almost certainly require
additional processing in another tool such as meshlab.

1 Mesh simplification using edge removal algorithm will be performed. This
process is relatively fast and the result maintains the exact blocky geometry
from the generation process. Typically this produces reasonable results for non
complex extrusions.
2 Mesh simplification using quadratic surface removal. This has not yet been
implemented! Use a tool such as meshlab if you require this type of
simplification.

-b The bloom filter complexity which controls the size of the filter and number of
iterations(functions) used by vertex indexing as part of the mesh simplification
process. Valid range is 0 to 16 with a default of 2. Most users will never need to
alter this parameter. It is useful only if they are experiencing a high filter miss
rate on exceptionally large meshes with 10 million facets or more).

-m The filename to save the mesh optimisation debug output to. This is a generated
html file which graphically shows each stage of the mesh simplification. This is
useful only for debugging purposes and for images above a few hundred facets the
output can run to many hundreds of megabytes.

input Specifies the source PNG file to convert from.

output Specifies the output file.

EXAMPLES


To convert from foo.png to foo.scad in scad polyhedron output format:

png23d -o pscad foo.png foo.scad

To convert from foo.png to foo.stl in binary STL output format with smooth finish:

png23d -f smooth -o stl foo.png foo.scad

To convert from foo.png to foo.stl in ascii STL output format with smooth finish and 50
unit output width:

png23d -f smooth -o astl -w 50 foo.png foo.scad

Use png23d online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Crater
    Crater
    Crater is an open-source web &
    mobile invoicing app made especially for
    freelancers and small businesses.
    It's the complete invoicing solution
    you need...
    Download Crater
  • 2
    formkiq-core
    formkiq-core
    FormKiQ Core is an Open Source Document
    Management System (DMS), available to
    run as a headless software or with a
    web-based client, deployed to your
    Amazon We...
    Download formkiq-core
  • 3
    Blackfriday
    Blackfriday
    Blackfriday is a Markdown processor
    implemented in Go. It is paranoid about
    its input (so you can safely feed it
    user-supplied data), it is fast, it
    supports c...
    Download Blackfriday
  • 4
    QNAP NAS GPL Source
    QNAP NAS GPL Source
    GPL source for QNAP Turbo NAS.
    Audience: Developers. User interface:
    Web-based. Programming Language: C,
    Java. Categories:System, Storage,
    Operating System Ker...
    Download QNAP NAS GPL Source
  • 5
    deep-clean
    deep-clean
    A Kotlin script that nukes all build
    caches from Gradle/Android projects.
    Useful when Gradle or the IDE let you
    down. The script has been tested on
    macOS, but ...
    Download deep-clean
  • 6
    Eclipse Checkstyle Plug-in
    Eclipse Checkstyle Plug-in
    The Eclipse Checkstyle plug-in
    integrates the Checkstyle Java code
    auditor into the Eclipse IDE. The
    plug-in provides real-time feedback to
    the user about viol...
    Download Eclipse Checkstyle Plug-in
  • More »

Linux commands

Ad