loadModel abstract method
Future<void>
loadModel({
- String? modelPath,
- String? modelUrl,
- required Map<
String, ByteData> resources, - List<
String> ? preselectedEntities, - List<
double> ? selectionColor, - List<
PatchColor> ? patchColors, - bool enableCache = false,
- List<
double> ? cacheColor, - bool clearSelectionsOnHighlight = false,
- List<
SequenceConfig> ? selectionSequence,
Method to load the model from assets or network.
resources is empty for .glb models and populated for .gltf models.
Implementation
Future<void> loadModel({
String? modelPath,
String? modelUrl,
required Map<String, ByteData> resources,
List<String>? preselectedEntities,
List<double>? selectionColor,
List<PatchColor>? patchColors, // Add patchColors
bool enableCache = false,
List<double>? cacheColor,
bool clearSelectionsOnHighlight = false,
final List<SequenceConfig>? selectionSequence
});