Grasshopper

algorithmic modeling for Rhino

Hi All,

I'm doing a C# script to sort similar surfaces on a geodesic dome.

The input surfaces are - in the script - placed in a list that i declare like this:
List<Surface> out2 = new List<Surface>();

However, when they are outputted, they are untrimmed...

Is there another type to use for trimmed surfaces?!

/Jes

Views: 2930

Replies to This Discussion

Hi Jes,

use List<Brep>. RhinoCommon Surfaces are full surfaces in reality.
Breps should be able to contain the information that you need.

Hope it helps,

- Giulio
______________
giulio@mnceel.com
McNeel Europe, Barcelona
You guys are so clever... Thanks, that worked.
So I guess that means that all trimmed surfaces actually are Breps!?
Well, yes, Grasshopper surfaces are Breps'es that have only one face. This way they can be trimmed.

- Giulio
______________
giulio@mnceel.com
McNeel Europe, Barcelona

Hello Jes.

I'm actually trying achieve what your problem caused. But my skills in C++ are quite poor so I'm wondering if you wouldn't mind sharing you code or helping me a bit? What i'm seeking is a module which takes the trimmed surfaces and remaps them to untrimmed.

 

//Oliver

There's an Untrim component now. Do you think that it might help?

Thanks,

- Giulio
_________________
giulio@mcneel.com
McNeel Europe

Hi Giulio,

And where in the grasshopper is the Untrim surface? do you know? will the Untrim option rebuilt the UV of his trim surface?

Best

Mania

Hi Mania,

untrimm is a component you can find in Surface -> Util -> Untrim (you need a recent version of Grasshopper)

I do not think it's necessary for it to rebuild the UV parameterization. It's something completely invisible in terms of final form anyhow.

- Giulio
_________________
giulio@mcneel.com
McNeel Europe

Attachments:

Hello Giulio!

 

Thank you for the tip but it does not take me where I want. I believed that when a surface is untrimmed the uv-coordinates are mapped to the new untrimmed surface. As i'm building a component which is placed in different surfaces segments created by splitting a master-surface. The geometry of the component is based in the uv-coordinate system and therefor it's nessesary for me to do a remapping of the new surface.

I did try to do new surfaces of the segments of the main surface but the uv-coordinate system is randomized which makes it hard to handle.

All the surfaces are reparameterised and evaluated in UV point 0.25,0.25

Is this possible?

 

//Oliver

Hi Oliver,

could you start a new thread and upload there a sample of what you are trying to do and what instead you are getting?

That would help understand. Thanks,

- Giulio
_________________
giulio@mcneel.com
McNeel Europe

I made a thread last week about this problem. I have made a different approach to the problem after I posted but the last issue is still the same.

http://www.grasshopper3d.com/forum/topics/few-problems-with-interpo...

 

Thank you for your commitment!

Oliver

hi jes, so the best is to use the brep input and use the faces like you are using surfaces

 

List<Brep> my_breps = new List<Brep>();
my_breps.Add(brep_in);
my_breps[the index of the list].Faces[always zero if it is a single surface]......... do what ever you want to do
 A = my_breps[0].Faces[0].DuplicateFace(true);

 

by using the brep objects you can do more freaky things with it for example if you join the surfaces you can find out the relationships of the surfaces

RSS

About

Translate

Search

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service