try to use BouzidiOffLatticeModel2D and other 2D offlattice model
rename Cuboid-->>Cuboid3D ,new class Line and Cuboid2D
new class SegmentSet for 2D offlattice
It can be build bug bug exist still.
use segmentBoundary2D instead of triangleBoundary2D ......
new class SegmentPolygonMesh2D for 2D offlattice.