# \[Solved\] Combining \`geom::source\` and \`TriMesh\`

**URL:** <https://discourse.libcinder.org/t/solved-combining-geom-source-and-trimesh/1653>\
**Category:** Using Cinder\
**Created:** [May 9, 2020, 10:21am UTC](https://discourse.libcinder.org/t/solved-combining-geom-source-and-trimesh/1653 "2020-05-09T10:21:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gazoo](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/gazoo/32/61_2.png) [@Gazoo](https://discourse.libcinder.org/u/Gazoo)\
**Post date:** [May 9, 2020, 10:21am UTC](https://discourse.libcinder.org/t/solved-combining-geom-source-and-trimesh/1653/1 "2020-05-09T10:21:09Z")

</div>

Hey 'embers,

Just like the topic states I’m wondering if there’s any way of merging a `TriMesh` into a `geom::source`. I’ve been trying to [add bevel to some 3D text](https://discourse.libcinder.org/t/applying-bevel-to-an-extruded-shape/1647) which I extrude from a 2D shape. So I effectively have my extruded text in a `geom::source` and I’ve now created a `TriMesh` containing my bevel, but I yet to find a way to combine them into a single object representing all this geometry.

I know I can turn extruded text into a `Batch` and place the bevel in a separate `Batch` and deal with it that way, but I’d ideally prefer to combine the two into one `Batch`.

Any ideas are much appreciated!

Cheers,  
Gazoo

---

<div class="post-metadata">

**Author:** ![lithium](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/lithium/32/38_2.png) [@lithium](https://discourse.libcinder.org/u/lithium)\
**Post date:** [May 9, 2020, 12:25pm UTC](https://discourse.libcinder.org/t/solved-combining-geom-source-and-trimesh/1653/2 "2020-05-09T12:25:41Z")

</div>

I think there’s an `operator &` isn’t there? e.g

`auto combined = geom::Rect() & geom::Circle();`

---

<div class="post-metadata">

**Author:** ![Gazoo](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/gazoo/32/61_2.png) [@Gazoo](https://discourse.libcinder.org/u/Gazoo)\
**Post date:** [May 10, 2020, 12:15am UTC](https://discourse.libcinder.org/t/solved-combining-geom-source-and-trimesh/1653/3 "2020-05-10T00:15:39Z")

</div>

I’d completely overlooked that a `TriMesh` is derived from a `geom::Source`. O\_o

Thanks @lithium! I much appreciate you help!
