--
You received this message because you are subscribed to the Google Groups "scalismo" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scalismo+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scalismo/4af297d7-0606-4068-9a18-4f15d28026f9n%40googlegroups.com.
A bit out of sync as I accidently replied privately earlier on
instead on this list :-/
Hi,
Without knowing your application you havI think it would be better Scala if you would use a case class including the referenceMesh as a field as data:
case class MyClass(data: String, reference: TriangleMesh[_3D]) val instance: MyClass = ??? val newInstance = instance.copy(reference = newReference)
To create a dummy mesh without anything you can use the following
code:
var mesh = TriangleMesh3D(IndexedSeq[Point3D](), TriangleList(IndexedSeq[TriangleCell]()))
Best, Andreas
To view this discussion on the web visit https://groups.google.com/d/msgid/scalismo/331cac64-2cc1-c89c-046d-3872fbc26795%40gmail.com.