Code Directory
 Visual Basic & VB.NET
New Code
White-label Grocery Delivery App Solution 2.0
Best Classified Script 5.1
Readymade B2B Script 1.3.1
Uber Clone with Safety Measure Addons 2.0
Equity Investing Software 1.3.2
C# QR Code Generator 2020.6.0.0
The .Net PDF Library 2020.7.1
dbExpress driver for MySQL 7.2
dbForge Documenter for Oracle 1.2
dbForge Studio for Oracle 4.2
Excel .Net Library 2020.6
fsMediaLibrary.NET 2019.11
VaxVoIP SIP Server SDK 5.2.0
Database Workbench Pro 5.7.4
dbForge Data Generator for Oracle 2.2
Top Code
Database Workbench Pro 5.7.4
dbExpress driver for SQL Server 4.45
dbExpress driver for MySQL 3.00
Availability Booking Calendar PHP 1.0
ATN Site Builder 3.0
dbForge Studio for Oracle 3.10
IcrediBB Bulletin Board System 1.0
MLM Software ONE 1.5.46
Invoice Manager by PHPJabbers 3.0
MLM Unilevel Plan Software 1.0.2
Monoline MLM Software 1.3.4
Simple Web Content Management System for Scripts 1.1
ICPennyBid Penny Auction Script 4.0
Paste phpSoftPro 1.4.1
Solid File System OS edition 5.1
Top Rated
phpEnter 5.1.
Single Leg MLM 1.2.1
Azizi search engine script PHP 4.1.10
Paste phpSoftPro 1.4.1
Extreme Injector 3.7
Deals and Discounts Website Script 1.0.2
Solid File System OS edition 5.1
Classified Ad Lister 1.0
Aglowsoft SQL Query Tools 8.2
Invoice Manager by PHPJabbers 3.0
ICPennyBid Penny Auction Script 4.0
PHP Review Script 1.0
ATN Resume Finder 2.0
ATN Site Builder 3.0
Availability Booking Calendar PHP 1.0
stlwrite - Write binary or ascii STL file 1.0
File ID: 81089

stlwrite - Write binary or ascii STL file 1.0
Download stlwrite - Write binary or ascii STL file 1.0 Error Link
License: Shareware
File Size: 10.0 KB
Downloads: 56
Submit Rating:
stlwrite - Write binary or ascii STL file 1.0 Description
Description: STLWRITE(FILE,fv) writes a stereolithography (STL) file to FILE for a triangulated
patch defined by FV (a structure with fields 'vertices' and 'faces').

STLWRITE(FILE,FACES,VERTICES) takes faces and vertices separately, rather than in an FV struct

STLWRITE(FILE,X,Y,Z) creates an STL file from surface data in X, Y, and Z. STLWRITE triangulates
this gridded data into a triangulated surface using triangulations options specified below. X, Y
and Z can be two-dimensional arrays with the same size. If X and Y are vectors with length equal
to SIZE(Z,2) and SIZE(Z,1), respectively, they are passed through MESHGRID to create gridded
data. If X or Y are scalar values, they are used to specify the X and Y spacing between grid

STLWRITE(...,'PropertyName',VALUE,'PropertyName',VALUE,...) writes an STL file using the
following property values:

MODE - File is written using 'binary' (default) or 'ascii'.

TITLE - Header text (max 80 characters) written to the STL file.

TRIANGULATION - When used with gridded data, TRIANGULATION is either:
'delaunay' - (default) Delaunay triangulation of X, Y
'f' - Forward slash division of grid quadrilaterals
'b' - Back slash division of quadrilaterals
'x' - Cross division of quadrilaterals
Note that 'f', 'b', or 't' triangulations require FEX entry 28327, "mesh2tri".

FACECOLOR - (not currently implemented) When used with face/vertex input, specifies the
colour of each triangle face. If users request this feature, I will attempt to
implement it.

Example 1:
% Write binary STL from face/vertex data
tmpvol = zeros(20,20,20); % Empty voxel volume
tmpvol(8:12,8:12,5:15) = 1; % Turn some voxels on
fv = isosurface(tmpvol, 0.99); % Create the patch object
stlwrite('test.stl',fv) % Save to binary .stl

Example 2:
% Write ascii STL from gridded data
[X,Y] = deal(1:40); % Create grid reference
Z = peaks(40); % Create grid height

Original idea adapted from surf2stl by Bill McDonald. Non-Delaunay triangulation of
quadrilateral surface input requires mesh2tri by Kevin Moerman.

Note: This entry was originally titled "patch2stl", however has been renamed to "stlwrite" after more general input was added.

License: Shareware

Related: feature, attempt, Request, Users, colour, Triangle, implement, empty, voxel, File

O/S:BSD, Linux, Solaris, Mac OS X

File Size: 10.0 KB

Downloads: 56

More Similar Code

STL_Import is a tool designed to import into MATLAB both binary and ASCII STL files.

This script is mainly a collage between file exchange file id 22409 and 3642, plus some other features that can be considered new.


mode 1 (default)
mode 2


filename: string representing the name...

How To Write Binary Files to the Browser Using ASP.NET and Visual C# .NET is a web based tutorial through which programmers can gather information about the steps that they have to adapt to retrieve binary data from file and also to download data...

This code converts any ASCII text file (notepad, MATLAB-m files, etc) into images.

Screen shot is the image being converted from a notepad file that had the story - Christmas Carol.

This is an useful networking tool for the users who use .NET applications on their system. It allows them to transfer file between various systems by enabling FTP component on their system. It supports both active and passive mode, binary or ASCII...

ZASM is a 2 pass assembler for Zilog's 8-bit CPU Z80. Supported platforms: Unix-style OS, e.g. MacOS X, Linux, BSD.Special support for ZX Spectrum emulator file formats. Binary or intel hex file output.

This function is used for loading binary STL files
There are already two stlread.m files available on the mathworks file exchange site. Harlev's version reads in the data and returns matrices with X/Y/Z formatted vertex data. Johnson's...

Binary file format provides interface for Common Lisp to read and write binary files in a simple way.

c++ library to read/write dxf files in binary and ascii form

A simple utility for converting 3d objects of RAW format to (ASCII) STL format.

the zip file includes a sample RAW file (a cube) that can be converted to STL format.

What it dose not do: simplify (e.g. the cube could be...

A quick script that lets you download all of your tweets and write them to a text file.

User Review for stlwrite - Write binary or ascii STL file
- required fields

Please enter text on the image