# vtkPoissonReconstruction Java Wrapper

**URL:** https://discourse.vtk.org/t/vtkpoissonreconstruction-java-wrapper/7150
**Category:** Support
**Created:** [November 11, 2021, 10:16am UTC](https://discourse.vtk.org/t/vtkpoissonreconstruction-java-wrapper/7150 "2021-11-11T10:16:50Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![thomasw](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/t/f475e1/32.png) [@thomasw](https://discourse.vtk.org/u/thomasw)
#### Post date: [November 11, 2021, 10:16am UTC](https://discourse.vtk.org/t/vtkpoissonreconstruction-java-wrapper/7150/1 "2021-11-11T10:16:50Z")

</div>

Hi,  
I compiled successfully VTK 9.1 with Java-Wrappers and module vtkPoissonReconstruction switched on using ninja running Windows 10 and VC2019.

But it only produces a PoissonReconstructionModule.java in [build-dir]/Wrapping/Java/vtk with an empty class. The same for the vtkPowercrust-module.

I tried the same with VTK 7/8 and linux-environment - same results.

Is this an expected behaviour because its a remote module?

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.vtk.org/u/ben.boeckel)
#### Post date: [November 15, 2021, 8:44pm UTC](https://discourse.vtk.org/t/vtkpoissonreconstruction-java-wrapper/7150/2 "2021-11-15T20:44:14Z")

</div>

Remote modules _should_ work with wrapping, though they may not be set up properly. Looking at the source, the header for the class is not passed to the module, so there’s no header known to the build system to know that things need wrapped in the first place. Given that Bill Lorensen is the main developer, I don’t know the status of it anymore these days.

---

<div class="post-metadata">

### Author: ![thomasw](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/t/f475e1/32.png) [@thomasw](https://discourse.vtk.org/u/thomasw)
#### Post date: [November 17, 2021, 8:56am UTC](https://discourse.vtk.org/t/vtkpoissonreconstruction-java-wrapper/7150/3 "2021-11-17T08:56:02Z")

</div>

Many thanks for your reply!  
Do you think it’s a big thing to implement this?  
Probably you can give me any advice how to start or where to look at so I may take a look at it myself, please?

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.vtk.org/u/ben.boeckel)
#### Post date: [November 17, 2021, 2:01pm UTC](https://discourse.vtk.org/t/vtkpoissonreconstruction-java-wrapper/7150/4 "2021-11-17T14:01:10Z")

</div>

The source listing is not correct. I would recommend looking at other modules for how sources are passed to `vtk_module_add_module`. The [docs](https://vtk.org/doc/nightly/html/group__module.html#gac321df2e3dbf7e7be8a4a13fb81b1b57) should be useful as well. Basically, the classes that need wrapped should be in the `HEADERS` argument (though `CLASSES` is a handy shortcut for those using VTK’s extension patterns).

---

<div class="post-metadata">

### Author: ![toddy](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/t/edb3f5/32.png) [@toddy](https://discourse.vtk.org/u/toddy)
#### Post date: [November 17, 2021, 11:42pm UTC](https://discourse.vtk.org/t/vtkpoissonreconstruction-java-wrapper/7150/5 "2021-11-17T23:42:37Z")

</div>

> [@ben.boeckel](#):
>
> Remote modules _should_ work with wrapping, though they may not be set up properly. Looking at the source, the header for the class is not passed to the module, so there’s no header known to the build system to know that things need wrapped in the first place.

Given that a **PoissonReconstructionModule.java** file is generated I find this hard to believe.

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.vtk.org/u/ben.boeckel)
#### Post date: [November 18, 2021, 12:53am UTC](https://discourse.vtk.org/t/vtkpoissonreconstruction-java-wrapper/7150/6 "2021-11-18T00:53:44Z")

</div>

The module header is always added to `HEADERS` (though it really should be `NOWRAP_HEADERS` since there’s nothing to wrap in it) since the module system generates it.
