# Simplest example with Drei sampler

**URL:** <https://discourse.threejs.org/t/simplest-example-with-drei-sampler/64921>\
**Category:** Questions\
**Tags:** geometry\
**Created:** [May 1, 2024, 2:54pm UTC](https://discourse.threejs.org/t/simplest-example-with-drei-sampler/64921 "2024-05-01T14:54:55Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![drcmda](https://avatars.discourse-cdn.com/v4/letter/d/91b2a8/32.png) [@drcmda](https://discourse.threejs.org/u/drcmda)\
**Post date:** [May 3, 2024, 6:20am UTC](https://discourse.threejs.org/t/simplest-example-with-drei-sampler/64921/8 "2024-05-03T06:20:33Z")

</div>

```jsx
<Sampler>
  <mesh geometry={nodes.anyOneMesh.geometry} scale={0.1}>
    <meshStandardMaterial color="blue" wireframe />
  </mesh>
</Sampler>

```

like @donmccurdy said, the MeshSurfaceSampler operates on one single mesh. not a group, or a mesh inside an empty mesh (like in your example). a mesh in threejs has a geometry and a material, if it doesn’t it’s basically a group.

if you want to sample the whole model with all its parts you have to join and possibly bake materials into one in blender.

---

_[View the full topic](https://discourse.threejs.org/t/simplest-example-with-drei-sampler/64921)._
