createGeometry method

  1. @override
Future<ThermionEntity> createGeometry(
  1. List<double> vertices,
  2. List<int> indices, {
  3. String? materialPath,
  4. PrimitiveType primitiveType = PrimitiveType.TRIANGLES,
})
override

Creates a (renderable) entity with the specified geometry and adds to the scene.

Implementation

@override
Future<ThermionEntity> createGeometry(
    List<double> vertices, List<int> indices,
    {String? materialPath,
    PrimitiveType primitiveType = PrimitiveType.TRIANGLES}) async {
  throw UnimplementedError();
  // final ThermionEntity jsEntity = await _shim
  //     .createGeometry(vertices, indices,
  //         materialPath: materialPath, primitiveType: primitiveType.index)
  //     .toDart;
  // return ThermionEntity._fromJSObject(jsEntity).toDart;
}