# How to explode a curve face

**URL:** <https://forums.sketchup.com/t/how-to-explode-a-curve-face/103497>\
**Category:** Ruby API\
**Tags:** sketchup, ruby, rubyapi\
**Created:** [September 17, 2019, 12:08am UTC](https://forums.sketchup.com/t/how-to-explode-a-curve-face/103497 "2019-09-17T00:08:19Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexey](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/alexey/32/73176_2.png) [@alexey](https://forums.sketchup.com/u/alexey)\
**Post date:** [September 17, 2019, 12:08am UTC](https://forums.sketchup.com/t/how-to-explode-a-curve-face/103497/1 "2019-09-17T00:08:19Z")

</div>

How to explode a one curve face into separate planar faces using Ruby API?

How to convert this:

 ![image](https://global.discourse-cdn.com/sketchup/original/3X/9/7/97e93eea1e0768809e72b499361e18dd613927ed.png)  
into:  
 ![image](https://global.discourse-cdn.com/sketchup/original/3X/e/a/ea418c4bc0cdcb4dac1b55ef8ec200ba99b8ed5e.png)

SKP: [test1.skp](https://forums.sketchup.com/uploads/short-url/nRyaIbb1Y8V3a6KESZgCRMaBycA.skp) (127.1 KB)

---

<div class="post-metadata">

**Author:** ![slbaumgartner](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/slbaumgartner/32/7302_2.png) [@slbaumgartner](https://forums.sketchup.com/u/slbaumgartner)\
**Post date:** [September 17, 2019, 12:15am UTC](https://forums.sketchup.com/t/how-to-explode-a-curve-face/103497/2 "2019-09-17T00:15:20Z")

</div>

Curves don’t exist as such in SketchUp, they are always series of straight edges. The difference between your two images is just whether or not the soft/smooth edges are visible.

---

<div class="post-metadata">

**Author:** ![alexey](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/alexey/32/73176_2.png) [@alexey](https://forums.sketchup.com/u/alexey)\
**Post date:** [September 17, 2019, 12:17am UTC](https://forums.sketchup.com/t/how-to-explode-a-curve-face/103497/3 "2019-09-17T00:17:38Z")

</div>

There is one more difference: I can’t select one separate face on the first image

@slbaumgartner is there any way to switch from the first image into the second using Ruby API?

thanks!

---

<div class="post-metadata">

**Author:** ![slbaumgartner](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/slbaumgartner/32/7302_2.png) [@slbaumgartner](https://forums.sketchup.com/u/slbaumgartner)\
**Post date:** [September 17, 2019, 12:23am UTC](https://forums.sketchup.com/t/how-to-explode-a-curve-face/103497/4 "2019-09-17T00:23:44Z")

</div>

Gather the edges and turn off their soft and smooth properties.

---

<div class="post-metadata">

**Author:** ![alexey](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/alexey/32/73176_2.png) [@alexey](https://forums.sketchup.com/u/alexey)\
**Post date:** [September 17, 2019, 12:26am UTC](https://forums.sketchup.com/t/how-to-explode-a-curve-face/103497/5 "2019-09-17T00:26:08Z")

</div>

@slbaumgartner thanks! It works

```auto
Sketchup.active_model.entities.grep(Sketchup::Edge).each do |edge|
  edge.soft = false
  edge.smooth = false
end

```

---

<div class="post-metadata">

**Author:** ![DanRathbun](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/danrathbun/32/500_2.png) [@DanRathbun](https://forums.sketchup.com/u/DanRathbun)\
**Post date:** [September 17, 2019, 4:07am UTC](https://forums.sketchup.com/t/how-to-explode-a-curve-face/103497/6 "2019-09-17T04:07:09Z")

</div>

And if it was selected …

```ruby
Sketchup.active_model.selection.grep(Sketchup::Edge).each do |edge|
  edge.soft = false
  edge.smooth = false
end

```

---

<div class="post-metadata">

**Author:** ![DanRathbun](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/danrathbun/32/500_2.png) [@DanRathbun](https://forums.sketchup.com/u/DanRathbun)\
**Post date:** [September 17, 2019, 4:10am UTC](https://forums.sketchup.com/t/how-to-explode-a-curve-face/103497/7 "2019-09-17T04:10:45Z")

</div>

> [@alexey](#):
>
> I can’t select one separate face on the first image

You CAN select single faces if you switch **View** \> **Hidden Geometry** ON.  
Then you do not need to unsoften/unsmooth the edges.

 ![image](https://global.discourse-cdn.com/sketchup/original/3X/5/6/5627b8f8a8e14b55cfc40e7bbcc533e025d25619.png)
