ENH: add colour for x3d surface writer (#1057)

- can be used for outputing sampled surfaces in x3d format for direct
  import in other rendering tools.
This commit is contained in:
Mark Olesen
2019-05-06 17:13:22 +02:00
committed by Andrew Heather
parent 3089a11647
commit 23e5d43e4e
16 changed files with 2002 additions and 27 deletions

96
etc/colourTables Normal file
View File

@ -0,0 +1,96 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1812 |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
// An OpenFOAM dictionary of colourTables.
// The names should match those in the colourTables class.
6
(
coolToWarm
{
// ParaView: "Cool To Warm"
interpolate diverging;
table
(
( 0.0 ( 0.231372 0.298039 0.752941 ) )
( 0.5 ( 0.865003 0.865003 0.865003 ) )
( 1.0 ( 0.705882 0.0156863 0.14902 ) )
);
}
coldAndHot
{
// ParaView : "Cold and Hot"
interpolate diverging;
table
(
( 0 ( 0 1 1 ) )
( 0.45 ( 0 0 1 ) )
( 0.5 ( 0 0 0.5019608) )
( 0.55 ( 1 0 0 ) )
( 1 ( 1 1 0 ) )
);
}
fire
{
// ParaView: Black-Body Radiation
interpolate rbg;
table
(
( 0 ( 0 0 0 ) )
( 0.4 ( 0.901961 0 0 ) )
( 0.8 ( 0.901961 0.901961 0 ) )
( 1 ( 1 1 1 ) )
);
}
rainbow
{
interpolate hsv;
table
(
( 0 ( 0 0 1 ) )
( 0.5 ( 0 1 0 ) )
( 1 ( 1 0 0 ) )
);
}
greyscale
{
// ParaView: grayscale
interpolate rbg;
table
(
( 0 ( 0 0 0 ) )
( 1 ( 1 1 1 ) )
);
}
xray
{
// ParaView: "X ray"
interpolate rbg;
table
(
( 0 ( 1 1 1 ) )
( 1 ( 0 0 0 ) )
);
}
)
// ************************************************************************* //