# Issue with the Ladybug´s CountourMesh component

**URL:** <https://discourse.ladybug.tools/t/issue-with-the-ladybug-s-countourmesh-component/1943>\
**Category:** ladybug-legacy\
**Tags:** contourmesh\
**Created:** [June 28, 2017, 4:46am UTC](https://discourse.ladybug.tools/t/issue-with-the-ladybug-s-countourmesh-component/1943 "2017-06-28T04:46:00Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![SonnyWeaver](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/sonnyweaver/32/190_2.png) [@SonnyWeaver](https://discourse.ladybug.tools/u/SonnyWeaver)\
**Post date:** [June 28, 2017, 4:46am UTC](https://discourse.ladybug.tools/t/issue-with-the-ladybug-s-countourmesh-component/1943/1 "2017-06-28T04:46:00Z")

</div>

Hallo Everyone,

I have one question about one component of Ladybug.

I need to simulate a sunlight hours analysis over faces of buildings, but when a try to generate the contour mesh (Even just a facade) appears this error “The connected inputMesh is not planar and this component only works for planar meshes”

Is there a way to fix this problem?

Best Regards

---

<div class="post-metadata">

**Author:** ![devang](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/devang/32/21620_2.png) [@devang](https://discourse.ladybug.tools/u/devang)\
**Post date:** [June 28, 2017, 5:30am UTC](https://discourse.ladybug.tools/t/issue-with-the-ladybug-s-countourmesh-component/1943/2 "2017-06-28T05:30:00Z")

</div>

Hi,

This component works with planar meshes only. Since you are interested in looking at sunlight hours on one Facade only. Only provide that facade as a surface in \_geometry input and it should work.

---

<div class="post-metadata">

**Author:** ![devang](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/devang/32/21620_2.png) [@devang](https://discourse.ladybug.tools/u/devang)\
**Post date:** [June 28, 2017, 5:32am UTC](https://discourse.ladybug.tools/t/issue-with-the-ladybug-s-countourmesh-component/1943/3 "2017-06-28T05:32:00Z")

</div>

Sample

[SunlightHours.gh](https://discourse.ladybug.tools/uploads/default/original/2X/b/bc2cfc51729a5ffd77603aed9f7f84a77128e403.gh) (406 KB)

---

<div class="post-metadata">

**Author:** ![devang](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/devang/32/21620_2.png) [@devang](https://discourse.ladybug.tools/u/devang)\
**Post date:** [June 28, 2017, 5:58am UTC](https://discourse.ladybug.tools/t/issue-with-the-ladybug-s-countourmesh-component/1943/4 "2017-06-28T05:58:00Z")

</div>

Hi Sonny Weaver,

Sure, a facade surface can be supplied quite similarly. Please find revised sample. Hope it helps.

[![](http://api.ning.com:80/files/pJ01nIxEv7v*rbDAhXjtSQjnrCfTciJwNPo77Gg07rebeLXsqownf0mEy5g7NZNavR07UY2mfVOdxmT*RRWWPOq8RnBH6-hn/Capture.png?width=721)](http://api.ning.com:80/files/pJ01nIxEv7v*rbDAhXjtSQjnrCfTciJwNPo77Gg07rebeLXsqownf0mEy5g7NZNavR07UY2mfVOdxmT*RRWWPOq8RnBH6-hn/Capture.png)

[SunlightHours.gh](https://discourse.ladybug.tools/uploads/default/original/2X/b/bc2cfc51729a5ffd77603aed9f7f84a77128e403.gh) (406 KB)

---

<div class="post-metadata">

**Author:** ![SonnyWeaver](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/sonnyweaver/32/190_2.png) [@SonnyWeaver](https://discourse.ladybug.tools/u/SonnyWeaver)\
**Post date:** [June 28, 2017, 6:30am UTC](https://discourse.ladybug.tools/t/issue-with-the-ladybug-s-countourmesh-component/1943/5 "2017-06-28T06:30:00Z")

</div>

Dear mr Chauhan,

I attached a simplified version of my work.

I can not find the solution with his method (which in his example works).

I hope you can solve the problem by taking a look at the files.

Many Thanks

Best Regards

[Test Version.3dm](https://discourse.ladybug.tools/uploads/default/original/2X/f/f083894b0322f2198bbcc0e7d9d9477e47b736ca.3dm) (817 KB)  
[Ladybug Test Version 1.0.gh](https://discourse.ladybug.tools/uploads/default/original/2X/0/074eddaae757ecd6c3958ead742a2dddacf0a45d.gh) (420 KB)

---

<div class="post-metadata">

**Author:** ![devang](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/devang/32/21620_2.png) [@devang](https://discourse.ladybug.tools/u/devang)\
**Post date:** [June 28, 2017, 7:06am UTC](https://discourse.ladybug.tools/t/issue-with-the-ladybug-s-countourmesh-component/1943/6 "2017-06-28T07:06:00Z")

</div>

[![](http://api.ning.com:80/files/pJ01nIxEv7sIkytxySnj16uy16Q0c93TUlVivgzoG53TX0Uo7GedvrVFP7ES3DPzveRwqXRy2NpSRjK4BO1VIJjT2vBAjMpD/Capture.png?width=721)](http://api.ning.com:80/files/pJ01nIxEv7sIkytxySnj16uy16Q0c93TUlVivgzoG53TX0Uo7GedvrVFP7ES3DPzveRwqXRy2NpSRjK4BO1VIJjT2vBAjMpD/Capture.png)

[TestVersion.3dm](https://discourse.ladybug.tools/uploads/default/original/2X/4/4f75714d9f1e4fd9b44d154b9fc6f8a948931229.3dm) (700 KB)  
[LadybugTestVersion1.0.gh](https://discourse.ladybug.tools/uploads/default/original/2X/5/58421fbc0a643c93c620cc7795eb77cb63063e05.gh) (500 KB)

---

<div class="post-metadata">

**Author:** ![SonnyWeaver](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/sonnyweaver/32/190_2.png) [@SonnyWeaver](https://discourse.ladybug.tools/u/SonnyWeaver)\
**Post date:** [June 28, 2017, 7:18am UTC](https://discourse.ladybug.tools/t/issue-with-the-ladybug-s-countourmesh-component/1943/7 "2017-06-28T07:18:00Z")

</div>

Thanks for his precious help mr. Devang.

Best regards
