Show / Hide Table of Contents

Class ExportToWebGl

Export a Model as a WebGl based html file.

Inheritance
System.Object
ExportToWebGl
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: CADability
Assembly: CADability.dll
Syntax
public class ExportToWebGl

Constructors

| Improve this Doc View Source

ExportToWebGl(Model)

Create the ExportToWebGl class with the model to be exported

Declaration
public ExportToWebGl(Model m)
Parameters
Type Name Description
Model m

Fields

| Improve this Doc View Source

HtmlTemplatePath

Location of the template html file. If no value is provided the file "CADability.WebGl.html" in the CADability installation directory will be used

Declaration
public string HtmlTemplatePath
Field Value
Type Description
System.String
| Improve this Doc View Source

InitialProjectionDirection

A initial direction for the projection may be specified.

Declaration
public GeoVector InitialProjectionDirection
Field Value
Type Description
GeoVector

Properties

| Improve this Doc View Source

IgnoreUserData

A list of keys for UserData which will be ignored (for display in the HTML ControlCenter). IgnoreUserData and UseOnlyUserData are mutually exclusive.

Declaration
public string[] IgnoreUserData { get; set; }
Property Value
Type Description
System.String[]
| Improve this Doc View Source

Precision

Precision for triangulation of Faces and approximation of curves to polylines. If no value is provided the precision will be 1/1000 of the model extend

Declaration
public double Precision { get; set; }
Property Value
Type Description
System.Double
| Improve this Doc View Source

UseOnlyUserData

A list of keys for UserData which will be used (for display in the HTML ControlCenter). IgnoreUserData and UseOnlyUserData are mutually exclusive.

Declaration
public string[] UseOnlyUserData { get; set; }
Property Value
Type Description
System.String[]
| Improve this Doc View Source

UserDataAsName

Use the value of this UserData as the name property of the object (as shown in the HTML ControlCenter)

Declaration
public string UserDataAsName { get; set; }
Property Value
Type Description
System.String

Methods

| Improve this Doc View Source

GetData(Boolean)

Declaration
public string GetData(bool escapeQuote)
Parameters
Type Name Description
System.Boolean escapeQuote
Returns
Type Description
System.String
| Improve this Doc View Source

WriteToFile(String)

Write the resulting html file to the provided location.

Declaration
public bool WriteToFile(string outPath)
Parameters
Type Name Description
System.String outPath
Returns
Type Description
System.Boolean

true on success

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX