WriteWebGL(WriteParamsWithMaterials, Material, String, Double, Nullable<Color>, String) Constructor

Deviation, document and default material constructor. The exported model will be regenerated with specified deviation.
Public Sub New( _ 
ByVal writeParams As WriteParamsWithMaterials, _ 
ByVal defaultMaterial As Material, _ 
ByVal fileName As String, _ 
ByVal deviation As Double, _ 
Optional ByVal htmlBodyColor As Nullable(Of Color) = null, _ 
Optional ByVal htmlTemplate As String = null _ 
)
This language is not supported or no code example is available.
public WriteWebGL( 
WriteParamsWithMaterials writeParams
Material defaultMaterial
string fileName
double deviation
Nullable<Color> htmlBodyColor = null, 
string htmlTemplate = null 
)
This language is not supported or no code example is available.

Parameters

writeParams
WriteParamsWithMaterials

The WriteParamsWithMaterials

defaultMaterial
Material

The default material.

fileName
string

The file name (with html extension).

deviation
double

The maximum deviation

htmlBodyColor
Nullable<Color>

The Color for the HTML body. It can be null/Nothing.

htmlTemplate
string

A string representing the HTML template for the output. It must contain both EyeshotGeometry and EyeshotScripts html comment tags to work properly.

Remarks
 
The htmlBodyColor will add the bgcolor attribute but it may not work when you use a custom htmlTemplate.
Example
 
         <html>
          
              <script>
                ...
                <!-- EyeshotScripts -->
                ...
              </script>
              <body>
                ...
                <!-- EyeshotGeometry -->
                ...
              </body>
                  
    </html>					

.NET Framework

Supported in: 4.8

In this article

Definition