Damien is right, It will be best if you use the Brep utility functions and functions in OnBrep, OnBrepFace, etc.
Also check the following page for samples (especially the BrepSamples): http://en.wiki.mcneel.com/default.aspx/McNeel/Rhino4DotNetPlugIns.html Also check this page for Brep topology: http://en.wiki.mcneel.com/default.aspx/McNeel/BrepStructure.html On Jan 20, 11:09 am, damien_alomar <[email protected]> wrote: > I don't think its as simple as just adding the surfaces. I haven't > done any real B-Rep work, but there is a function in the SDK to join > Breps, so I'd imagine that that method would be a better way to > go....RhUtil.RhinoJoinBreps > > -Damien > > On Jan 20, 11:52 am, rompompom <[email protected]> > wrote: > > > > > Hi grasshoppers > > > As a test for a node that joins surfaces to polysurfaces i tried to > > understand how to add a surface to a brep. next planned step would be > > to eliminate double edges within a certain tolerance. but the > > following script just delivers a bunch of "invalid topology"s > > > Sub RunScript(ByVal S1 As OnBrep, ByVal S2 As OnBrep) > > > Dim bTmp As OnBrep : bTmp = New OnBrep() > > > If S1.IsSurface Then bTmp.AddSurface(S1.m_S(0)) > > If S2.IsSurface Then bTmp.AddSurface(S2.m_S(0)) > > > A = bTmp > > > End Sub > > > ??? please help > > matthias- Hide quoted text - > > - Show quoted text -
