- Code: Select all
face[0].pushpull distance
I tried
- Code: Select all
face[0].transform!(Geom::Transformation.new([0, distance, 0]))
I also tried adding the faces to selection and doing something with that but I can't get anything to work.
Thanks...
Moving a curved face/surface
2 posts
• Page 1 of 1
Moving a curved face/surfaceAs the title says, how do I move the curved face/surface? I'm able to iterate and get the individual faces and I tried
I tried
I also tried adding the faces to selection and doing something with that but I can't get anything to work. Thanks... Re: Moving a curved face/surface
Found this post which helped me find the solution...
https://forums.sketchup.com/t/transform-a-model-vertex-by-vertex/38771/7 Here's the code I'm using with some notes... if something can be improved or changed please let me know? I can also add the code to iterate the faces if needed? Basically you need the vertices of all the faces you want to move and each vertex needs a cooresponding vector to be moved to. That way you can pass the 2 arrays to
Like Tig explained in the post I shared...
Hopefully this helps others out because it wasn't easy to find or understand... but it works!
2 posts
• Page 1 of 1
|