TABLE OF CONTENTS
ScPovPlot3D/STL-2.inc [ Modules ]
PURPOSE
Macros for representation of STL surfaces as mesh of triangles, Enhanced version: all data is stored in a huge array _STLDat[][] for this goal object mesh2{} is employed
Fig.[STL] 3D surface and 3D fuzzy texel modelled by mesh2 object
VERSION
4.0.1, 2021-05-19 - tested on PovRay 3.7.0
AUTHOR
Janusz Opiła Ph.D. jmo@agh.edu.pl, janusz.opila@gmail.com Dept. of Applied Informatics AGH Univ. of Science & Technology. Cracow, Poland Maintained by Janusz Opiła Ph.D.
HISTORY
2021-05-20, v4.0.1, comment added
COPYRIGHT
GNU GPL v.3 License (c) 2013-now by Janusz Opiła Ph.D.
STL-2.inc/DrawSTLSurface () [ Helper macros ]
[ Top ] [ STL-2.inc ] [ Helper macros ]
PURPOSE
Draws surface representation in the form of smooth mesh of triangles
SYNOPSIS
DrawSurface(string filename DataFileName)
INPUTS
DataFileName - valid name of file with data - see example file for details of its structure. Generally speaking first is Xaxis title, Yaxis title, Format of the input file - modified STL file: commas and quotation marks "solid", "ascii" "facet", "normal", -0.205737, 0.80223, 0.560446 "outer", loop "vertex", -39.6278, -17.0595, -7.95349 "vertex", -39.5592, -16.9846, -8.03552 "vertex", -39.7552, -17.0438, -8.02273 "endloop" "endfacet" | "facet" ... "endfacet" "facet" ... "endfacet" "facet" ... "endfacet" | "endfacet", "endsolid"
SEE ALSO
WireSurf.inc BPatchSurf.inc DrawSurfaceOnBlock ()
STL-2.inc/DrawSTLSurfaceArr () [ Helper macros ]
[ Top ] [ STL-2.inc ] [ Helper macros ]
PURPOSE
Draws surface representation in the form of smooth mesh of triangles, employes huge array _STLDat[][]
SYNOPSIS
DrawSurface(string filename DataFileName)
INPUTS
DataFileName - valid name of file with data - see example file for details of its structure. Generally speaking first is Xaxis title, Yaxis title, Format of the input file - modified STL file: commas and quotation marks "solid", "ascii" "facet", "normal", -0.205737, 0.80223, 0.560446 "outer", loop "vertex", -39.6278, -17.0595, -7.95349 "vertex", -39.5592, -16.9846, -8.03552 "vertex", -39.7552, -17.0438, -8.02273 "endloop" "endfacet" | "facet" ... "endfacet" "facet" ... "endfacet" "facet" ... "endfacet" | "endfacet", "endsolid"
SEE ALSO
WireSurf.inc BPatchSurf.inc DrawSurfaceOnBlock ()
STL-2.inc/ScanSTLSurface() [ Helper macros ]
[ Top ] [ STL-2.inc ] [ Helper macros ]
PURPOSE
Draws surface representation in the form of smooth mesh of triangles
SYNOPSIS
DrawSurface(string filename DataFileName)
INPUTS
DataFileName - valid name of file with data - see example file for details of its structure. Generally speaking first is Xaxis title, Yaxis title, Format of the input file - modified STL file: added commas and quotation marks "solid", "ascii" "facet", "normal", -0.205737, 0.80223, 0.560446 "outer", loop "vertex", -39.6278, -17.0595, -7.95349 "vertex", -39.5592, -16.9846, -8.03552 "vertex", -39.7552, -17.0438, -8.02273 "endloop" "endfacet" | "facet" ... "endfacet" "facet" ... "endfacet" "facet" ... "endfacet" | "endfacet", "endsolid" Start - integer - begin scanning strip at this position Window - integer - width of scanning window (for example 1000)
SEE ALSO
WireSurf.inc BPatchSurf.inc DrawSurfaceOnBlock () DrawSTLSurface ()
STL-2.inc/DeclareLevel [ Variables ]
[ Top ] [ STL-2.inc ] [ Variables ]
PURPOSE
DeclareLevel determines what is defined:
- 0 = colour only
- 2 = also texture
- 4 = complete material
this value is valid until next "Set...()" declaration is met SOURCE */