Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

17
LINES

< > BotCompany Repo | #1035063 // G22RegionsToMeshes

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (16118L/96K).

srecord G22RegionsToMeshes(Cl<IImageRegion> regions) {
  settable bool keepMetaSrc = true;
  IImageRegion thinnedRegion;
  
  L<G22Mesh> get() {
    ret map(regions, region -> {
      var thinner = new G22RegionThinner_v2(region);
      stepAll(thinner);
      thinnedRegion = thinner.region();
    
      var meshMaker = new G22SkeletonToMesh_v2(thinnedRegion);
      var mesh = meshMaker!;
      if (!keepMetaSrc) clearMetaSrc(mesh);
      ret mesh;
    });
  }
}

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, ekrmjmnbrukm, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1035063
Snippet name: G22RegionsToMeshes
Eternal ID of this version: #1035063/5
Text MD5: 567a2397fc55ac77dc1488bb36dce2af
Transpilation MD5: 7ca2e69f22b01d3e8d71b6227d45c148
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-04-30 20:37:55
Source code size: 481 bytes / 17 lines
Pitched / IR pitched: No / No
Views / Downloads: 150 / 244
Version history: 4 change(s)
Referenced in: #1003674 - Standard Classes + Interfaces (LIVE continued in #1034167)