Sp3dObj constructor
Sp3dObj(
- List<
Sp3dV3D> vertices, - List<
Sp3dFragment> fragments, - List<
Sp3dMaterial> materials, - List<
Uint8List> images, { - String? id,
- String? name,
- String? author,
- Sp3dPhysics? physics,
- Map<
String, dynamic> ? option, - int layerNum = 0,
- EnumSp3dDrawMode drawMode = EnumSp3dDrawMode.normal,
Constructor
- vertices : vertex list.
- fragments : This includes information such as the vertex information of the object.
- materials : This includes information such as colors.
- images : Image data.
- id : Object ID.
- name : Object name.
- author : Object author name. It is mainly for distribution, and null is better during calculation.
- physics : Parameters for physics calculations.
- option : Optional attributes that may be added for each app.
- layerNum : If the renderer has layerNum enabled, it forces the drawing order to be in ascending order of this value.
- drawMode : Specifies the drawing mode when rendering. Specify rect when speed is required but 3D structure is not required, such as scatter plots.
Implementation
Sp3dObj(this.vertices, this.fragments, this.materials, this.images,
{this.id,
this.name,
this.author,
this.physics,
this.option,
this.layerNum = 0,
this.drawMode = EnumSp3dDrawMode.normal});