When Orthanc can produce STL files for 3D printing
If a clinical or research team wants printable models from images already held in Orthanc, the STL plugin is the official route, and it does two things: it attaches STL files to studies, and it generates meshes from DICOM RT-STRUCT or NIfTI binary volumes. Creating STL files requires Orthanc 1.12.1 or later, so the first check is the core version on the server that will run the plugin. Confirm that version against the running instance, not the version in a build script, because a container image tag and the deployed server can drift apart.
The plugin is deliberately narrow. It handles STL only and stores its output as Encapsulated 3D Manufacturing Model objects, so it does not produce other mesh or print formats, and it does not do the printing workflow itself. Check the plugin's current scope in the Orthanc Book STL plugin page before you design around it, particularly which input types are supported and how they must be structured. Anything outside that scope will need a separate tool and a separate validation step.
An STL file is a geometric surface, not a clinical measurement. A mesh generated from a segmentation can inherit errors from the contouring or segmentation that produced it, and the printed part carries no statement of its accuracy. The plugin does not replace clinical validation, so the owning clinical team should decide who signs off each model before it is used for surgical planning, and what quality checks, such as comparing printed dimensions with the source images, are required first.
Choosing between attached STL files and generated meshes
Teams that already segmented anatomy in another tool, such as a vendor planning workstation or a research segmentation package, can attach the resulting STL files to the study they came from. The STL plugin stores them as Encapsulated 3D Manufacturing Model objects, so the mesh stays linked to the imaging it was derived from. Orthanc does not rebuild the surface in this path, so print quality depends on the segmentation step that produced the file.
- Source reference: Record which study, series and acquisition the mesh was segmented from, in the file name or an accompanying note.
- Single structure per file: Confirm each STL holds the structure you intend to print and that separate anatomical parts were not merged by accident.
- Watertight geometry: Check for holes, inverted normals and self-intersections in a mesh viewer before attaching the file.
- Units and scale: Confirm the file is in the unit the segmentation tool wrote and that its scale matches the source CT or MR.
- Authorship and version: Keep the segmentation software version and the operator's name with the file so the surgical team can trace any later change.
Before printing, open the attached file outside Orthanc, measure a known landmark against the source images, and confirm the print service accepts the file format and units.
An RT-STRUCT object stores contours that a planning system drew on a CT series. If the referenced CT images are in the same Orthanc, the STL plugin can generate meshes from those contours, which keeps the model tied to the planning data. The input has to be complete: the structure set, the CT series it references and contours that describe closed outlines. Creating STL files requires Orthanc 1.12.1 or later, so confirm the server version before you start the STL plugin documentation lists the supported inputs.
- Version floor: Confirm the Orthanc build is 1.12.1 or later, since earlier releases cannot create STL files.
- Referenced series: Confirm the CT series named by the RT-STRUCT is stored in the same Orthanc and shares the same frame of reference.
- ROI selection: Choose the named ROIs to export and check that the names match the labels the surgeon uses.
- Contour quality: Look for open contours, slice gaps and contours that stop early, since these produce holes or spikes in the mesh.
- Slice spacing: Check that slice spacing in the CT is consistent, because uneven spacing distorts the generated surface.
Before printing, compare the generated mesh with the contour overlay on the CT in a viewer, and confirm that the planning system which drew the contours is the approved source for the procedure.
NIfTI binary volumes often come from research pipelines or segmentation networks. They are not DICOM objects, so the team must link each volume to the correct study and series. The plugin needs a binary mask in which the target structure has one value and the background is zero. The header of the NIfTI file defines voxel spacing, dimensions, orientation and origin, and those values decide where the mesh sits relative to the patient.
- Binary mask: Confirm each volume contains one label per output mesh, with the structure set to a single value and everything else set to zero.
- Header geometry: Check voxel spacing, dimensions, orientation and origin against the source DICOM series, since mismatches shift or flip the mesh.
- Units: Confirm the header units and the intended physical size of the printed part agree.
- Stray islands: Remove small disconnected regions from the network output, which otherwise appear as separate fragments in the print.
- Model provenance: Record the model or pipeline, its version and the threshold used, because the mask reflects those choices.
Before printing, overlay the mesh on the source series, confirm the mask was produced from the same acquisition, and check that the output covers the structure of clinical interest.
Plugin options and when each fits
This table compares the three ways a mesh can reach the printer: attaching an STL file that already exists, deriving a mesh from an RT-STRUCT contour set, and deriving one from a NIfTI binary volume. Read each row against your source data and your Orthanc version, since the STL plugin needs Orthanc 1.12.1 or later to create files. The main takeaway is that the source data you already hold usually decides the route, and the version check comes first.
| Option | What it takes in | When it fits | What to confirm |
|---|---|---|---|
| Attached STL file | An existing STL file stored as an Encapsulated 3D Manufacturing Model object in a study | A segmentation or model was already produced in planning software and needs to live with the patient record | Who produced the file, its units and orientation, and that the plugin accepts it on your Orthanc version |
| RT-STRUCT-derived mesh | A DICOM RT-STRUCT object referencing the planning CT in Orthanc | Radiotherapy contours already exist and a printable surface is needed from them | Contour names, whether closed contours are complete, and the reference CT series needed alongside |
| NIfTI-derived mesh | A NIfTI binary volume, typically a segmentation mask, stored or supplied for the study | Research or surgical segmentation tools export NIfTI and no DICOM structure set exists | Label values in the mask, voxel spacing, and whether the mask aligns with the DICOM geometry |
| Orthanc version floor | Orthanc 1.12.1 or later for creating STL files | Any site planning mesh generation must run this release or newer | Your current release and the plugin version you will deploy; upgrade path before the build starts |
| Output validation | Generated or attached STL checked in a mesh viewer and print slicer | Every route, before a model leaves the department for printing or surgical use | Watertight geometry, scale in millimeters, and agreed sign-off by the clinical team |
Setting up the STL plugin in an Orthanc environment
This sequence takes a team from confirming the Orthanc version to checking that generated STL meshes open in the slicer or print software they actually use. Each step ends with a check, so problems surface on a non-production copy before any clinical data or printer time is involved.
Confirm the Orthanc version
Check that the Orthanc core in the target environment is version 1.12.1 or later, since the STL plugin requires that version to create STL files. Run the system endpoint on the test server, or read the version from the startup log, and record the exact build alongside the Docker image tag or Linux package version. If the server is older, plan the core upgrade in a separate change window before continuing. This step is done when the version is written down and the team agrees it meets the requirement.
Install the STL plugin on a test deployment
Install the STL plugin on a non-production Orthanc instance that matches the chosen deployment method, whether Docker, Windows, or a Linux package. Load the plugin through the Orthanc configuration, restart the service, and confirm in the startup log that the plugin loaded without errors. Keep the test instance separate from the clinical archive and from any PACS connection that could send real studies to it. This step is done when the plugin appears as loaded and the server runs cleanly after restart.
Attach one STL file to a test study
Choose one anonymized or synthetic study on the test instance and attach a single STL file to it as an Encapsulated 3D Manufacturing Model object. Check that the file is stored under the study, that it can be retrieved through the REST API, and that the retrieved bytes match the original file's size and checksum. Note how the attached object appears in the Orthanc web interface you plan to use. This step is done when the file round-trips intact and the team has seen it listed under the study.
Generate a mesh from one RT-STRUCT sample
Select one RT-STRUCT sample that has a clearly defined structure, such as a simple organ contour, and use the plugin to generate an STL mesh from it. Confirm that the generated object is stored with the study and that its name matches the structure it was built from. Compare the mesh against the contour in a viewer to confirm it covers the expected region without obvious gaps or extra islands. Record any structures that failed or produced an empty result. This step is done when one structure yields a mesh that matches its contour on visual inspection.
Generate a mesh from one NIfTI sample
Repeat mesh generation with one NIfTI binary volume, using a segmentation mask whose label and voxel spacing you already know. Check that the output dimensions are consistent with the source volume's spacing, so the model is not distorted or scaled incorrectly. Confirm the mesh is attached to the expected study and that the segmentation label is preserved in the naming or metadata. This step is done when the NIfTI-derived mesh has the expected proportions and the team has noted the source spacing used.
Open the output in your slicer or print software
Import both generated meshes and the attached test STL into the slicing or print preparation software your team uses, and confirm each file loads without repair prompts. Check units, orientation, and scale against a known measurement from the source data. Look for non-manifold edges, inverted normals, or holes flagged by the software, and record them. This step is done when the team has a short written result for each file stating whether it opens, its scale, and any repair warnings. Involve the clinical engineer or surgical planning lead in reviewing those results before any mesh is used beyond testing.
How study data becomes a printable STL file
The workflow starts in the Orthanc archive, where RT-STRUCT or NIfTI volumes sit alongside any existing STL objects. The STL plugin either attaches a supplied STL file to the study or generates a mesh from the source data, and the result is stored back in Orthanc as an Encapsulated 3D Manufacturing Model object. Before anything reaches a print preparation tool, a clinical reviewer must confirm that the mesh matches the anatomy and the structure it represents.
The clinical review gate sits between the stored STL object and any print preparation step.
Protecting patient data in generated 3D models
A generated STL mesh is patient data in a different form. It can be copied, printed and shared outside the PACS, so the controls on the source study need to follow the derived objects. The cards below cover who can reach the meshes, what the geometry reveals, how Orthanc's documented security settings apply, and how long generated files stay on disk.
Access to derived STL objects
An STL attached to a study inherits no access rules of its own unless your authorization setup covers it. Confirm that the users who can open a study in the viewer are the same users who can download its STL objects through the REST API. Test this with a standard user account, not an administrator, before any clinical team starts printing from the archive.
STL plugin docsMeshes carry anatomy and identity
A mesh built from RT-STRUCT contours or a NIfTI volume reproduces bone and soft tissue shape, and a file name or study label can still tie it to a patient. Treat the mesh as identifiable unless your privacy office has reviewed it. Check whether the file name, the attached metadata and any print job header contain patient names or identifiers before the file leaves the department.
Keep REST routes authenticated
Orthanc accepts HTTP connections only from localhost by default. If remote access is enabled, the documented baseline is authentication turned on with users defined in the registered user list, plus HTTPS and a reverse proxy for any Internet exposure. Confirm that the STL routes are reachable only through that authenticated path, and that the script execution and export routes stay disabled.
Orthanc security FAQUse the authorization plugin for role checks
Built-in user accounts can separate login from study-level rights only in a limited way. The advanced authorization plugin forwards each request's token to an external service that decides access and returns HTTP 403 when a request is denied. Ask your identity team whether that service can distinguish viewing a study from downloading its generated mesh, and test both outcomes.
Authorization plugin docsSet retention for generated files
Generated meshes are new files that the archive will not delete with the source study unless your process does. Decide whether meshes are kept as long as the study, kept only for the planning window, or regenerated on demand. Write the rule down, apply it to the storage layer you run, and confirm that deleting a study also removes its derived objects in your test environment.
Questions teams ask before building 3D models from Orthanc
What drives the cost of building 3D models from Orthanc?
Cost is driven mostly by internal staff time, not by the plugin itself. The main components are the time your imaging team spends selecting studies and reviewing segmentations, the validation work your clinical and engineering staff perform before any printed model is used, and any vendor services you buy. Orthanc has no paid edition, so software licensing is not a line item for the core server or the STL plugin, though you should confirm the terms of any other component you add. Vendor help, such as Orthanc Team deployment or configuration services, is quoted on request, so ask for a written scope that lists which study types, segmentation sources and file formats are covered. One-time costs include the initial setup and validation, while recurring costs include staff review time for each print request, storage for generated meshes, and any support hours you choose to retain.
Can our team build 3D models from Orthanc without a vendor?
Yes, a capable in-house team can build the workflow, provided it has the skills to run an Orthanc server and to review the medical content of what it produces. The STL plugin attaches STL files to studies, generates meshes from DICOM RT-STRUCT or NIfTI binary volumes, and is limited to STL files under the Encapsulated 3D Manufacturing Model IODs. Your team would need to install and maintain Orthanc, choose the source data, generate and store meshes, and document how each model is checked before use. Vendor help is most useful when you need a fixed-scope design, an independent review of the workflow, or support for a first rollout. Whatever you choose, confirm the plugin's behavior on your own data, because the documentation alone does not replace local testing.
What skills and roles does a 3D model workflow need?
Plan for three roles that often overlap in small teams. Imaging expertise is needed to judge whether the source volume or RT-STRUCT is fit for a surgical or planning model, and to confirm that the contours or segmentation represent the anatomy the surgeon needs. A DICOM administrator must run the Orthanc server, manage the STL plugin, control which studies are exposed to it, and keep the server version current. A print workflow owner is accountable for the path from a generated STL to a printed object, including file handling, the print service or printer used, labeling, and sign-off rules. Name one person for each role in writing before the work begins, and record who approves a model for clinical use.
How long does validation take before printed models are used?
Validation duration depends on your own process, not on a figure from the plugin, so the honest answer is that it can only be set after your team defines its acceptance criteria. Typical steps include comparing a generated mesh with the source data for dimensional accuracy, checking the mesh for holes or inverted faces, printing test objects on your printer, and having a clinician confirm that the model matches the planning images. Each new study type, segmentation method or printer usually needs its own pass. Ask your quality or clinical governance lead for the procedure your organization already uses for medical devices, software or planning tools, and fold these checks into it. Time spent on review will vary with how many study types you support.
Which Orthanc version should we plan around for STL generation?
Plan around Orthanc 1.12.1 or later, because the STL plugin requires that version to create STL files. Orthanc 1.13.0 was released on 2026-08-15 with a rewrite of storage-area access and DICOM parsing and transcoding aimed at caching and memory use, and it followed 1.12.11 on 2026-04-14 and 1.12.10 on 2025-11-26. Before you pick a target, read the release notes for any change that affects your storage, database plugin or viewer setup, and test the STL workflow on a copy of your archive. Keep the Orthanc version, the STL plugin and any database plugin aligned in your change records so that a later upgrade is traceable.
Does the STL plugin handle segmentation review and print approval?
No. The STL plugin converts supported inputs into STL meshes and stores them with the study, but it does not decide whether a segmentation is correct or whether a printed object is fit for use. Those decisions belong to your clinical team and your print workflow owner. Treat the mesh as an intermediate output that needs review at each step, and record the source series, the RT-STRUCT or NIfTI file used, the software versions and the approver for every model. If you want an outside check of how the workflow handles patient data, access and audit trails, DeployOpen can run security testing on the setup, but it does not issue audit reports or certifications.
Who controls access to meshes and patient data in the archive?
Access to STL files is governed by the same controls as the rest of the study, so the question is really about how your Orthanc server is protected. By default Orthanc only accepts HTTP connections from localhost. If RemoteAccessAllowed is enabled, the documentation says AuthenticationEnabled should be true with users defined in RegisteredUsers, and it recommends HTTPS and a reverse proxy for any Internet exposure. Disable the /tools/execute-script and export routes, which the security FAQ warns can run system commands or overwrite files. Print workstations and surgical planning users should only reach what their role requires, and you should confirm how your chosen authorization approach applies to STL attachments on your own setup.
What does a fixed-scope engagement for this workflow include?
A fixed-scope engagement sets out, in writing before work starts, what will be built and tested and what the client provides. For an STL workflow, the scope should name the Orthanc version, the STL plugin, the input types (RT-STRUCT, NIfTI or existing STL attachments), the study sources, the storage location, the access model and the validation evidence the client expects. It should also list the deliverables, such as configuration, a runbook, test records and handover notes, and state what is excluded, such as clinical sign-off or printer procurement. DeployOpen plans, implements, documents and supports self-hosted open-source platforms in infrastructure the client controls, and most engagements are fixed-scope. Ask for a quote that follows from that written scope, because DeployOpen does not publish a price list.
Running STL generation alongside the archive
Plan the STL plugin as a versioned component of the Orthanc archive, not as a side tool, because mesh generation depends on the core version. Creating STL files requires Orthanc 1.12.1 or later, so the first operational check is to confirm the core build in every environment where generation runs, including any Docker image tags and Linux packages. Orthanc 1.13.0 was released on 2026-08-15 with a rewrite of storage-area access and DICOM parsing and transcoding, so a team that upgrades the core to that release line should expect the plugin to be retested against the new behavior before it is trusted with clinical workflows. Record which core and plugin builds are deployed together and keep that pairing in change control, so a core upgrade never silently leaves the STL plugin on an unsupported combination.
Mesh objects add storage that the archive did not carry before. Each STL file attached to a study is stored as its own object in the archive, and meshes generated from RT-STRUCT or NIfTI volumes can be created more than once as plans are revised. Estimate growth by generating a sample set of meshes from your own studies, then measure the stored size, and ask your vendor or partner how the plugin names, stores and deletes these objects in your chosen storage back end. Confirm whether deleting a study also removes its attached STL objects, and whether regenerated meshes replace or accumulate, because those answers determine both your capacity plan and your retention and deletion records.
Test every new plugin or core version on a copy of the archive before it touches production. Use a restored copy that includes representative RT-STRUCT and NIfTI-derived studies, run the generation and attachment workflows end to end, and compare the output with the production result for the same inputs. Keep the copy on the same database engine and storage layout as production, since differences there can change behavior more than the plugin itself. Monitor generation jobs by logging each request, its source study, its outcome and its duration, and alert on failed or stalled jobs. Review those logs after each upgrade, because a mesh that fails quietly is easy to miss until a surgical team asks for it.
How DeployOpen scopes and delivers Orthanc STL work
DeployOpen approaches STL work on Orthanc as a scoped platform change inside infrastructure you control. We agree the study sources, mesh outputs and review steps in writing first, then build and test the pipeline against your own archive and documented Orthanc version requirements before handover.
How we scope
- Confirm your Orthanc version and whether it meets the 1.12.1 minimum for creating STL files
- Define which inputs feed mesh generation: RT-STRUCT objects, NIfTI binary volumes, or STL files attached to studies
- Agree who reviews printed models and which clinical sign-off steps sit outside the engagement
How we build
- Install and configure the STL plugin in a test instance that mirrors your production Orthanc setup
- Test mesh generation on representative studies, checking that output files attach to the correct study
- Document access controls on STL routes so only authorized users can create or retrieve meshes
How we hand over
- Deliver the written configuration, version record and step-by-step procedure for generating and attaching meshes
- Provide test cases and results showing which input types produced which STL outputs
- Walk your imaging and IT staff through the runbook and the known limits of the workflow
How we support
- Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts
- Ongoing support, plugin upgrades and retesting after Orthanc releases are available as a retainer
- Ask for a written quote that lists the scope, the environments covered and the review responsibilities

