Sp3dObj class Null safety

(en) Flutter implementation of Sp3dObj. The options for this object and internal elements can be freely extended for each application. When writing out, to_dict is converted to json. If you want to read it, you can easily restore it by calling from_dict.

(ja) Sp3dObjのFlutter実装です。 このオブジェクト及び内部要素のoptionはアプリケーション毎に自由に拡張できます。 書きだす場合はto_dictしたものをjson化します。読み込む場合はfrom_dict呼び出しで簡単に復元できます。

Author Masahide Mori

First edition creation date 2021-06-30 22:54:22


Sp3dObj(String? id, String? name, List<Sp3dV3D> vertices, List<Sp3dFragment> fragments, List<Sp3dMaterial> materials, List<Uint8List> images, Map<String, dynamic>? option)
Constructor [...]


class_name String
fragments List<Sp3dFragment>
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
id String?
read / write
images List<Uint8List>
read / write
materials List<Sp3dMaterial>
read / write
name String?
read / write
option Map<String, dynamic>?
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
version String
vertices List<Sp3dV3D>
read / write


deep_copy() Sp3dObj
Deep copy the object.
move(Sp3dV3D v) Sp3dObj
(en)Adds the specified vector to all vectors of this object. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
rotate(Sp3dV3D nor_axis, double radian) Sp3dObj
(en)Rotates all vectors of this object based on the specified axis. [...]
to_dict() Map<String, dynamic>
Convert the object to a dictionary.
toString() String
A string representation of this object. [...]


operator ==(Object other) bool
The equality operator. [...]

Static Methods

from_dict(Map<String, dynamic> src) Sp3dObj
Restore this object from the dictionary. [...]