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).

1  
srecord G22RegionsToMeshes(Cl<IImageRegion> regions) {
2  
  settable bool keepMetaSrc = true;
3  
  IImageRegion thinnedRegion;
4  
  
5  
  L<G22Mesh> get() {
6  
    ret map(regions, region -> {
7  
      var thinner = new G22RegionThinner_v2(region);
8  
      stepAll(thinner);
9  
      thinnedRegion = thinner.region();
10  
    
11  
      var meshMaker = new G22SkeletonToMesh_v2(thinnedRegion);
12  
      var mesh = meshMaker!;
13  
      if (!keepMetaSrc) clearMetaSrc(mesh);
14  
      ret mesh;
15  
    });
16  
  }
17  
}

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: 151 / 246
Version history: 4 change(s)
Referenced in: [show references]