Search
Code Directory
 ASP
 ASP.NET
 C/C++
 CFML
 CGI/PERL
 Delphi
 Development
 Flash
 HTML
 Java
 JavaScript
 Pascal
 PHP
 Python
 SQL
 Tools
 Visual Basic & VB.NET
 XML
New Code
Rapid PHP 2018 15.5
IBDAC 6.4
Online Course Booking Script 1.3.3
Database Workbench Pro 5.6.4
Job Portal Script 1.3.2
The C# PDF Library 5.2
PostgreSQL Data Access Components 6.0
Virtual Data Access Components 11.0
HTMLPad 2018 15.5
WeBuilder 2018 15.5
SentiMask SDK Trial 2.0.0
Track Order For Magento 2 1.0.0
Calendar 365 For Dynamics CRM 4.0
Scimbo 1.2
Odoo Furnito Theme 1.0
Top Code
PostgreSQL Data Access Components 4.4
Database Workbench Pro 5.6.4
Availability Booking Calendar PHP 1.0
Online Course Booking Script 3.04
ATN Site Builder 3.0
ATN Resume Finder 2.0
PHP Review Script 1.0
IBDAC 6.4
ICPennyBid Penny Auction Script 4.0
Invoice Manager by PHPJabbers 3.0
The C# PDF Library 1.0
Azizi search engine script PHP 4.1.10
HTMLPad 2018 15.5
Aglowsoft SQL Query Tools 8.2
Classified Ad Lister 1.0
Top Rated
VisualNEO Web 2018.12.15
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
ADO.NET Provider for ExactTarget 1.0
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.0http://en.www.sven.ru/Report Error Link
License: Shareware
File Size: 10.0 KB
Downloads: 52
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
points.

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
stlwrite('test.stl',X,Y,Z,'mode','ascii')

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: 52



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.

SYNOPSIS:

mode 1 (default)
[p,t,tnorm]=STL_Import(filename,mode)
mode 2
[v,tnorm])=STL_Import(filename,mode)

input:

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