# Adding Roemer's Boolean Filter as a Remote Module

**URL:** <https://discourse.vtk.org/t/adding-roemers-boolean-filter-as-a-remote-module/1635>\
**Category:** Development\
**Created:** [August 21, 2019, 10:07pm UTC](https://discourse.vtk.org/t/adding-roemers-boolean-filter-as-a-remote-module/1635 "2019-08-21T22:07:25Z")\
**Posts on this page:** 18\
**Page:** 2

<div class="post-metadata">

**Author:** ![lorensen](https://discourse.vtk.org/user_avatar/discourse.vtk.org/lorensen/32/20_2.png) [@lorensen](https://discourse.vtk.org/u/lorensen)\
**Post date:** [September 15, 2019, 1:00am UTC](https://discourse.vtk.org/t/adding-roemers-boolean-filter-as-a-remote-module/1635/21 "2019-09-15T01:00:00Z")

</div>

I am just working on windows warnings. Took a break for a few days. I’ll send instructions later on how to try it.

---

<div class="post-metadata">

**Author:** ![lorensen](https://discourse.vtk.org/user_avatar/discourse.vtk.org/lorensen/32/20_2.png) [@lorensen](https://discourse.vtk.org/u/lorensen)\
**Post date:** [September 15, 2019, 10:26pm UTC](https://discourse.vtk.org/t/adding-roemers-boolean-filter-as-a-remote-module/1635/22 "2019-09-15T22:26:20Z")

</div>

@kayarre @Ron84 You can try out the latest MR by:\

1. Check out this [MR](https://gitlab.kitware.com/vtk/vtk/merge_requests/5879)
2. Run make
3. Edit your CMakeLists.txt to set: _VTK\_MODULE\_ENABLE\_VTK\_Boolean:STRING=YES_
4. There are two tests. Run them with:  
ctest --R PolyDataBooleanFilter

---

<div class="post-metadata">

**Author:** ![kayarre](https://discourse.vtk.org/user_avatar/discourse.vtk.org/kayarre/32/808_2.png) [@kayarre](https://discourse.vtk.org/u/kayarre)\
**Post date:** [September 16, 2019, 6:53pm UTC](https://discourse.vtk.org/t/adding-roemers-boolean-filter-as-a-remote-module/1635/23 "2019-09-16T18:53:46Z")

</div>

@lorensen silly question, should the python wrapper be built or is this testing the C++ only?

Is there something special to get the remote module to work with python if it supposed to be included?

Figure it out i think, needed to use import vtkmodules, but I I am not able to find where the filter is.

---

<div class="post-metadata">

**Author:** ![Ron84](https://discourse.vtk.org/user_avatar/discourse.vtk.org/ron84/32/630_2.png) [@Ron84](https://discourse.vtk.org/u/Ron84)\
**Post date:** [September 17, 2019, 9:44pm UTC](https://discourse.vtk.org/t/adding-roemers-boolean-filter-as-a-remote-module/1635/24 "2019-09-17T21:44:08Z")

</div>

@lorensen I have two points:

1. Why have you removed the cmake\_minimum\_required and project directive?
2. The lib should also be available in ParaView. Also as an external module. Do you know how to do this? If yes, could you please add the required files.

---

<div class="post-metadata">

**Author:** ![Ron84](https://discourse.vtk.org/user_avatar/discourse.vtk.org/ron84/32/630_2.png) [@Ron84](https://discourse.vtk.org/u/Ron84)\
**Post date:** [September 17, 2019, 11:00pm UTC](https://discourse.vtk.org/t/adding-roemers-boolean-filter-as-a-remote-module/1635/25 "2019-09-17T23:00:05Z")

</div>

I think the tests does not work correctly. Please compare the running times:

> **[View Paste fbOIb](https://paste.ee/p/fbOIb)**
>
> Paste.ee - View Paste fbOIb

  

> **[View Paste pMRDU](https://paste.ee/p/pMRDU)**
>
> Paste.ee - View Paste pMRDU

---

<div class="post-metadata">

**Author:** ![lorensen](https://discourse.vtk.org/user_avatar/discourse.vtk.org/lorensen/32/20_2.png) [@lorensen](https://discourse.vtk.org/u/lorensen)\
**Post date:** [September 18, 2019, 6:07pm UTC](https://discourse.vtk.org/t/adding-roemers-boolean-filter-as-a-remote-module/1635/26 "2019-09-18T18:07:19Z")

</div>

You are right. I just submitted a MR to fix the test.

---

<div class="post-metadata">

**Author:** ![Ron84](https://discourse.vtk.org/user_avatar/discourse.vtk.org/ron84/32/630_2.png) [@Ron84](https://discourse.vtk.org/u/Ron84)\
**Post date:** [September 18, 2019, 9:38pm UTC](https://discourse.vtk.org/t/adding-roemers-boolean-filter-as-a-remote-module/1635/27 "2019-09-18T21:38:24Z")

</div>

Okay it works now.

How can I find the python module?

And please answer my questions in #24.

---

<div class="post-metadata">

**Author:** ![seanm](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/s/a88e4f/32.png) [@seanm](https://discourse.vtk.org/u/seanm)\
**Post date:** [October 7, 2019, 4:03pm UTC](https://discourse.vtk.org/t/adding-roemers-boolean-filter-as-a-remote-module/1635/28 "2019-10-07T16:03:05Z")

</div>

Ronald,

“We” is me and my coworkers / employer. Depends what you mean by ‘complex models’, but probably yes. We have a collection of meshes that have been troublesome over the years, from libGTS through all the various code VTK has gone through for boolean intersections.

Sean

---

<div class="post-metadata">

**Author:** ![kayarre](https://discourse.vtk.org/user_avatar/discourse.vtk.org/kayarre/32/808_2.png) [@kayarre](https://discourse.vtk.org/u/kayarre)\
**Post date:** [October 7, 2019, 4:07pm UTC](https://discourse.vtk.org/t/adding-roemers-boolean-filter-as-a-remote-module/1635/29 "2019-10-07T16:07:42Z")

</div>

I still haven’t figured out how to get the python wrappers to work.

---

<div class="post-metadata">

**Author:** ![lorensen](https://discourse.vtk.org/user_avatar/discourse.vtk.org/lorensen/32/20_2.png) [@lorensen](https://discourse.vtk.org/u/lorensen)\
**Post date:** [October 7, 2019, 5:33pm UTC](https://discourse.vtk.org/t/adding-roemers-boolean-filter-as-a-remote-module/1635/30 "2019-10-07T17:33:34Z")

</div>

The remote module python wrappers are not implemented yet. To use it from Python you will need to use the original Roemer version.

Bill

---

<div class="post-metadata">

**Author:** ![lassoan](https://discourse.vtk.org/user_avatar/discourse.vtk.org/lassoan/32/50_2.png) [@lassoan](https://discourse.vtk.org/u/lassoan)\
**Post date:** [October 7, 2019, 9:46pm UTC](https://discourse.vtk.org/t/adding-roemers-boolean-filter-as-a-remote-module/1635/31 "2019-10-07T21:46:10Z")

</div>

> [@lorensen](#):
>
> The remote module python wrappers are not implemented yet.

Is this a limitation of the new build system or just something not implemented in this particular remote module?

---

<div class="post-metadata">

**Author:** ![lorensen](https://discourse.vtk.org/user_avatar/discourse.vtk.org/lorensen/32/20_2.png) [@lorensen](https://discourse.vtk.org/u/lorensen)\
**Post date:** [October 8, 2019, 3:08am UTC](https://discourse.vtk.org/t/adding-roemers-boolean-filter-as-a-remote-module/1635/32 "2019-10-08T03:08:41Z")

</div>

A limitation of remote modules  
I have to figure this out.

---

<div class="post-metadata">

**Author:** ![Ron84](https://discourse.vtk.org/user_avatar/discourse.vtk.org/ron84/32/630_2.png) [@Ron84](https://discourse.vtk.org/u/Ron84)\
**Post date:** [October 8, 2019, 1:30pm UTC](https://discourse.vtk.org/t/adding-roemers-boolean-filter-as-a-remote-module/1635/33 "2019-10-08T13:30:00Z")

</div>

> [@lorensen](#):
>
> A limitation of remote modules

I can’t understand why not. It’s the classical VTK problem. Nothing is well documented…

---

<div class="post-metadata">

**Author:** ![Ron84](https://discourse.vtk.org/user_avatar/discourse.vtk.org/ron84/32/630_2.png) [@Ron84](https://discourse.vtk.org/u/Ron84)\
**Post date:** [October 30, 2019, 4:10pm UTC](https://discourse.vtk.org/t/adding-roemers-boolean-filter-as-a-remote-module/1635/34 "2019-10-30T16:10:31Z")

</div>

@lorensen Do you still working on it?

---

<div class="post-metadata">

**Author:** ![lorensen](https://discourse.vtk.org/user_avatar/discourse.vtk.org/lorensen/32/20_2.png) [@lorensen](https://discourse.vtk.org/u/lorensen)\
**Post date:** [October 30, 2019, 4:59pm UTC](https://discourse.vtk.org/t/adding-roemers-boolean-filter-as-a-remote-module/1635/35 "2019-10-30T16:59:27Z")

</div>

I’m waiting to see how the wrapping/remote effort comes out.

---

<div class="post-metadata">

**Author:** ![Ron84](https://discourse.vtk.org/user_avatar/discourse.vtk.org/ron84/32/630_2.png) [@Ron84](https://discourse.vtk.org/u/Ron84)\
**Post date:** [March 4, 2020, 3:39pm UTC](https://discourse.vtk.org/t/adding-roemers-boolean-filter-as-a-remote-module/1635/36 "2020-03-04T15:39:23Z")

</div>

Is there a successor for Bill, who is working on this Merge Request? Are there any news about the python wrapper of remote modules?

---

<div class="post-metadata">

**Author:** ![Ron84](https://discourse.vtk.org/user_avatar/discourse.vtk.org/ron84/32/630_2.png) [@Ron84](https://discourse.vtk.org/u/Ron84)\
**Post date:** [August 22, 2020, 11:36am UTC](https://discourse.vtk.org/t/adding-roemers-boolean-filter-as-a-remote-module/1635/37 "2020-08-22T11:36:40Z")

</div>

Hello.

Are there any news about the python wrapper for remote modules?

Ronald

---

<div class="post-metadata">

**Author:** ![lassoan](https://discourse.vtk.org/user_avatar/discourse.vtk.org/lassoan/32/50_2.png) [@lassoan](https://discourse.vtk.org/u/lassoan)\
**Post date:** [August 22, 2020, 7:08pm UTC](https://discourse.vtk.org/t/adding-roemers-boolean-filter-as-a-remote-module/1635/38 "2020-08-22T19:08:54Z")

</div>

I’m very interested in this, too. What I see is that if something cannot be pip installed then for many people it does not exist. It would be essential to have an easy way of Python-wrapping and distributing VTK-based modules on PyPI. Maybe it is already easy, we just need a template that we could follow.

Could anyone give us a complete example of a VTK-based remote module available to install via PyPI?

[Previous page](https://discourse.vtk.org/t/adding-roemers-boolean-filter-as-a-remote-module/1635.md?page=1)
