Interface IConvertForWebGL
- Namespace
- CADability
- Assembly
- CADability.dll
Implemented by IGeoObjects that are not among the types ExportToWebGl handles itself and want to take part in the export: the exporter first asks for Data and uses the meshes when there are any, otherwise it exports Conversion in place of the object.
public interface IConvertForWebGL
Properties
Conversion
A standard object (solid, shell, face, curve, text, block...) that represents this object in the export; used when Data is null or empty. May be null, then the object itself is exported as far as its type allows.
IGeoObject Conversion { get; }
Property Value
Data
Ready-made triangle meshes for the object, each with its own colour; null or empty when Conversion is to be used instead.
WebGLData[] Data { get; }