# Generate finite elments by CGX for a grid of voxels

**URL:** <https://calculix.discourse.group/t/generate-finite-elments-by-cgx-for-a-grid-of-voxels/1838>\
**Category:** CalculiX GraphiX\
**Created:** [September 24, 2023, 5:58pm UTC](https://calculix.discourse.group/t/generate-finite-elments-by-cgx-for-a-grid-of-voxels/1838 "2023-09-24T17:58:59Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Megidd](https://yyz2.discourse-cdn.com/free1/user_avatar/calculix.discourse.group/megidd/32/1875_2.png) [@Megidd](https://calculix.discourse.group/u/Megidd)\
**Post date:** [September 26, 2023, 6:49am UTC](https://calculix.discourse.group/t/generate-finite-elments-by-cgx-for-a-grid-of-voxels/1838/6 "2023-09-26T06:49:22Z")

</div>

> [@rsmith](#):
>
> You don’t _have_ to use `cgx`.

Right. I guess I would stick with my current Golang data structure.

# Darker lines

Another thing that motivated me to try CGX for element generation, is the fact that I’m observing darker lines on the surface of my models:

 ![2023-09-26 10_12_17-Window](https://global.discourse-cdn.com/free1/uploads/calculix/original/2X/0/0154a31f79da06bf8573dd8067ed850ece03efdd.png)

It’s [suggested](https://calculix.discourse.group/t/connection-of-hex-and-tet-elements/1755/6) that the darker lines are a warning sign. So far, I couldn’t fix those darker lines.

---

_[View the full topic](https://calculix.discourse.group/t/generate-finite-elments-by-cgx-for-a-grid-of-voxels/1838)._
