TABLE OF CONTENTS


ScPovPlot3D/Mesh2Surf.inc [ Modules ]

[ Top ] [ Modules ]

PURPOSE

Macros for representation of 3D surfaces as mesh of triangles, for this goal object mesh2{} is employed

     


     

Fig.[Mesh2Surf] 3D surface modelled by mesh2 object


VERSION

v. 4.0.0, tested on PovRay 3.7

AUTHOR

Janusz Opiła Ph.D.

   jmo@agh.edu.pl, janusz.opila@gmail.com    
   Homepage: http://scpovplot3d.sourceforge.net
   Dept. of Applied Informatics
   AGH University of Science & Technology, Cracow, Poland
   Maintained by Janusz Opiła Ph.D.

COPYRIGHT

  GNU GPL v.3 License
  (c) 2012-now by Janusz Opiła Ph.D.         
  AGH University of Science and Technology

Mesh2Surf.inc/DrawFuzzySurface () [ Helper macros ]

[ Top ] [ Mesh2Surf.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,
  number of columns, then min and max value assigned to the items in first and last X column respectively (along POVRay X axis),
  umber of rows, then min and max value assigned to the items in first and last row respectively (along POVRay -Z axis),
  eventually numeric data in form of matrix, ie. data measured, observed or
  calculated over the real XY grid

SEE ALSO

WireSurf.inc BPatchSurf.inc DrawSurfaceOnBlock ()


Mesh2Surf.inc/DrawSurface () [ Helper macros ]

[ Top ] [ Mesh2Surf.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,
  number of columns, then min and max value assigned to the items in first and last X column respectively (along POVRay X axis),
  umber of rows, then min and max value assigned to the items in first and last row respectively (along POVRay -Z axis),
  eventually numeric data in form of matrix, ie. data measured, observed or
  calculated over the real XY grid

SEE ALSO

WireSurf.inc BPatchSurf.inc DrawSurfaceOnBlock ()


Mesh2Surf.inc/DrawSurfaceOnBlock () [ Helper macros ]

[ Top ] [ Mesh2Surf.inc ] [ Helper macros ]

PURPOSE

Draws surface representation in the form of smooth mesh of triangles

SYNOPSIS

DrawSurfaceOnBlock(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,
  number of columns, then min and max value assigned to the items in first and last X column respectively (along POVRay X axis),
  umber of rows, then min and max value assigned to the items in first and last row respectively (along POVRay -Z axis),
  eventually numeric data in form of matrix, ie. data measured, observed or
  calculated over the real XY grid

SEE ALSO

WireSurf.inc BPatchSurf.inc DrawSurface ()


Mesh2Surf.inc/Set_InterFinish, shiftXY [ Helper macros ]

[ Top ] [ Mesh2Surf.inc ] [ Helper macros ]

PURPOSE

moves

SYNOPSIS

#macro Set_InterFinish( _tt )

INPUTS

  _tt - texture to be applied

SEE ALSO

empty


Mesh2Surf.inc/Set_InterTexture, shiftXY [ Helper macros ]

[ Top ] [ Mesh2Surf.inc ] [ Helper macros ]

PURPOSE

moves

SYNOPSIS

#macro Set_InterTexture( _tt )

INPUTS

  _tt - texture to be applied

SEE ALSO

empty


Mesh2Surf.inc/Set_ShiftXY, shiftXY [ Helper macros ]

[ Top ] [ Mesh2Surf.inc ] [ Helper macros ]

PURPOSE

moves vertical description labels by that amount, can change it later on..

SYNOPSIS

#macro Set_ShiftXY(shft)

INPUTS

  shft - float - distance in POVRay units along X_P axis

SEE ALSO

empty


Mesh2Surf.inc/Set_SurfFinish, shiftXY [ Helper macros ]

[ Top ] [ Mesh2Surf.inc ] [ Helper macros ]

PURPOSE

moves

SYNOPSIS

#macro Set_SurfFinish( _tt )

INPUTS

  _tt - texture to be applied

SEE ALSO

empty


Mesh2Surf.inc/Set_SurfTexture [ Helper macros ]

[ Top ] [ Mesh2Surf.inc ] [ Helper macros ]

PURPOSE

moves

SYNOPSIS

#macro Set_SurfTexture( _tt )

INPUTS

  _tt - texture to be applied

SEE ALSO

empty


Mesh2Surf.inc/Set_TextFont, _TextFont [ Helper macros ]

[ Top ] [ Mesh2Surf.inc ] [ Helper macros ]

PURPOSE

Defines font for textual elements of the chart

    WARNING: Font must exist in the host operating system
    default setting "Arial.ttf" should be safe on Windows, as well as on some GNU/Linux distros

SYNOPSIS

#declare _TextFont = "Arial.ttf"; // "arialuni.ttf" is not safe as this font not always exist in the system
#macro Set_TextFont (_TxtFnt)

INPUTS

  _TxtFnt - string containing name of the file containing given font, ex. "Arial.ttf". Sets internal local variable _TextFont

SEE ALSO

Set_TFont ()


Mesh2Surf.inc/DeclareLevel [ Variables ]

[ Top ] [ Mesh2Surf.inc ] [ Variables ]

PURPOSE

DeclareLevel determines what is defined:

this value is valid until next "Set...()" declaration is met.

SOURCE

#declare DeclareLevel = 0; // 2in1 - doc entry & initialization