Quantcast
Channel: Rhino Developer - McNeel Forum
Viewing all 8561 articles
Browse latest View live

Create material, apply to layer and export to rmtl file

$
0
0

@Goodriver wrote:

I am using rhinocommon under Rhino 5, and I’m trying to create a new material, apply it to a layer and export the material to a rmtl file. I can do the first two, but when exporting with Rendersavematerialtofile as rmtl file it gives an error (“Invalid Instance”)

  // Create material
  int index = Rhino.RhinoDoc.ActiveDoc.Materials.Add();
  Rhino.DocObjects.Material mat = doc.Materials[index];
  mat.DiffuseColor = System.Drawing.Color.Chocolate;
  mat.SpecularColor = System.Drawing.Color.CadetBlue;
  mat.Name = "myMaterial";
  mat.CommitChanges();
  // Assign to current layer
  Rhino.DocObjects.Layer layer = Rhino.RhinoDoc.ActiveDoc.Layers.CurrentLayer;
  layer.RenderMaterialIndex = index;
  doc.Layers.Modify(layer, layer.LayerIndex, true);
  Rhino.RhinoDoc.ActiveDoc.Views.Redraw();
  // Export to rmtl
  Rhino.RhinoApp.RunScript("Rendersavematerialtofile \"myMaterial\" C:\\temp\\myMaterial.rmtl", true);

If I then try layer.RenderMaterial it says “Object reference not set to an instance of an object”, even if I have assigned a material to the layer. There is no method layer.Material…

If I create the material manually, then the command does work, but I would like to do it programatically with rhinocommon.

I wonder if it has to do with different material types in Rhino. I can see two different ones in the documentation:
Rhino.DocObjects.Material andn Rhino.Render.RenderMaterial. The colour for the first type I can modify, but for the second it seems not possible.

Thanks

Posts: 3

Participants: 2

Read full topic


Copy pasting custom rhino mesh object subclasses

$
0
0

@gccdragoonkain wrote:

As the title suggests, I have a CRhinoMeshObject with alot of its own bells and whistles. When I select it and then copy/paste it, I get back only the mesh (base class). How do I handle copy pasting of my object?

Thanks in advance.

Posts: 1

Participants: 1

Read full topic

Rhino 6.6 GH Python Script Component: Materials table errors

$
0
0

@mswaidan wrote:

Rhino.RhinoDoc.ActiveDoc.Materials[0].Name returns Orange
Rhino.RhinoDoc.ActiveDoc.Materials.Find("Orange", True) returns -1

Materials added programmatically do not appear in the Materials panel, but do increase Rhino.RhinoDoc.ActiveDoc.Materials.Count

Confirmed that code behaves as expected with same file in Rhino 5.

Has anyone else experienced this? Can someone from McNeel replicate to make sure I’m not doing something stupid / missed a change?

-M

Posts: 1

Participants: 1

Read full topic

OpenNurbs SDK Mesh Conversion

$
0
0

@samurle wrote:

Hello,
I’m looking at the OpenNurbs SDK for Rhino6, and I was wondering if there was any examples showing how to convert breps, surfaces, etc… to a triangular mesh? Without using OpenGL?

Basically, I just want to convert everything in a .3dm file to a mesh, without much hassle, using the SDK.
Thanks

Posts: 4

Participants: 3

Read full topic

Can't select objects with same material anymore

$
0
0

@Arman_Fissette wrote:

in object properties, the material is shown for objects. However, I can’t select all objects anymore with the same material.

I did an audit. Quite some errors found. See below. Also, Rhino keeps adding copies of materials.

Document Manifest:
Texture Mapping: 62 active, 1 system.
RenderMaterial[3] name missing from document manifest.
Material: Error: differences between model table[3] and manifest information.
RenderMaterial[4] name missing from document manifest.
Material: Error: differences between model table[4] and manifest information.
RenderMaterial[5] name missing from document manifest.
Material: Error: differences between model table[5] and manifest information.
RenderMaterial[6] name missing from document manifest.
Material: Error: differences between model table[6] and manifest information.
RenderMaterial[17] name missing from document manifest.
Material: Error: differences between model table[17] and manifest information.
RenderMaterial[19] name missing from document manifest.
Material: Error: differences between model table[19] and manifest information.
RenderMaterial[333] name missing from document manifest.
Material: Error: differences between model table[333] and manifest information.
RenderMaterial[338] name missing from document manifest.
Material: Error: differences between model table[338] and manifest information.
RenderMaterial[339] name missing from document manifest.
Material: Error: differences between model table[339] and manifest information.
RenderMaterial[340] name missing from document manifest.
Material: Error: differences between model table[340] and manifest information.
RenderMaterial[349] name missing from document manifest.
Material: Error: differences between model table[349] and manifest information.
RenderMaterial[350] name missing from document manifest.
Material: Error: differences between model table[350] and manifest information.
RenderMaterial[362] name missing from document manifest.
Material: Error: differences between model table[362] and manifest information.
RenderMaterial[364] name missing from document manifest.
Material: Error: differences between model table[364] and manifest information.
RenderMaterial[365] name missing from document manifest.
Material: Error: differences between model table[365] and manifest information.
RenderMaterial[370] name missing from document manifest.
Material: Error: differences between model table[370] and manifest information.
RenderMaterial[371] name missing from document manifest.
Material: Error: differences between model table[371] and manifest information.
RenderMaterial[840] name missing from document manifest.
Material: Error: differences between model table[840] and manifest information.
RenderMaterial[841] name missing from document manifest.
Material: Error: differences between model table[841] and manifest information.
RenderMaterial[842] name missing from document manifest.
Material: Error: differences between model table[842] and manifest information.
RenderMaterial[858] name missing from document manifest.
Material: Error: differences between model table[858] and manifest information.
RenderMaterial[910] name missing from document manifest.
Material: Error: differences between model table[910] and manifest information.
RenderMaterial[911] name missing from document manifest.
Material: Error: differences between model table[911] and manifest information.
RenderMaterial[912] name missing from document manifest.
Material: Error: differences between model table[912] and manifest information.
RenderMaterial[914] name missing from document manifest.
Material: Error: differences between model table[914] and manifest information.
RenderMaterial[917] name missing from document manifest.
Material: Error: differences between model table[917] and manifest information.
RenderMaterial[921] name missing from document manifest.
Material: Error: differences between model table[921] and manifest information.
RenderMaterial[922] name missing from document manifest.
Material: Error: differences between model table[922] and manifest information.
RenderMaterial[1054] name missing from document manifest.
Material: Error: differences between model table[1054] and manifest information.
RenderMaterial[1056] name missing from document manifest.
Material: Error: differences between model table[1056] and manifest information.
RenderMaterial[1057] name missing from document manifest.
Material: Error: differences between model table[1057] and manifest information.
RenderMaterial[1058] name missing from document manifest.
Material: Error: differences between model table[1058] and manifest information.
RenderMaterial[1059] name missing from document manifest.
Material: Error: differences between model table[1059] and manifest information.
RenderMaterial[1063] name missing from document manifest.
Material: Error: differences between model table[1063] and manifest information.
RenderMaterial[1064] name missing from document manifest.
Material: Error: differences between model table[1064] and manifest information.
RenderMaterial[1068] name missing from document manifest.
Material: Error: differences between model table[1068] and manifest information.
RenderMaterial[1069] name missing from document manifest.
Material: Error: differences between model table[1069] and manifest information.
RenderMaterial[1070] name missing from document manifest.
Material: Error: differences between model table[1070] and manifest information.
RenderMaterial[1081] name missing from document manifest.
Material: Error: differences between model table[1081] and manifest information.
RenderMaterial[1089] name missing from document manifest.
Material: Error: differences between model table[1089] and manifest information.
Material: Error: 40 errors found. Model: 1228 active, 0 deleted. Manifest: 1268 active, 0 deleted.
Line Pattern: 7 active, 3 system.
Layer: 62 active, 1 system.
Group: 82 active.
TextStyle: none.
Annotation Style: 8 active, 7 system.
Light: none.
Hatch Pattern: 9 active, 9 system.
Block: 8 active.
Model Geometry: 1961 active.

Error: 3428 model components (0 deleted). 23 system components. 3491 manifest items

object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
object should not be on a reference layer.
m_instance_definition_table[2]->Object(0) should not be a reference object.
m_instance_definition_table[2]->Object(1) should not be a reference object.
m_instance_definition_table[2]->Object(2) should not be a reference object.
m_instance_definition_table[2]->Object(3) should not be a reference object.
m_instance_definition_table[2]->Object(4) should not be a reference object.
m_instance_definition_table[2]->Object(5) should not be a reference object.
m_instance_definition_table[2]->Object(6) should not be a reference object.
m_instance_definition_table[2]->Object(7) should not be a reference object.
m_instance_definition_table[2]->Object(8) should not be a reference object.
m_instance_definition_table[2]->Object(9) should not be a reference object.
m_instance_definition_table[2]->Object(10) should not be a reference object.
m_instance_definition_table[2]->Object(11) should not be a reference object.
m_instance_definition_table[2]->Object(12) should not be a reference object.
m_instance_definition_table[2]->Object(13) should not be a reference object.
m_instance_definition_table[2]->Object(14) should not be a reference object.
m_instance_definition_table[2]->Object(15) should not be a reference object.
m_instance_definition_table[2]->Object(16) should not be a reference object.
m_instance_definition_table[2]->Object(17) should not be a reference object.
m_instance_definition_table[2]->Object(18) should not be a reference object.
m_instance_definition_table[2]->Object(19) should not be a reference object.
m_instance_definition_table[2]->Object(20) should not be a reference object.
m_instance_definition_table[2]->Object(21) should not be a reference object.
m_instance_definition_table[2]->Object(22) should not be a reference object.
m_instance_definition_table[2]->Object(23) should not be a reference object.
m_instance_definition_table[2]->Object(24) should not be a reference object.
m_instance_definition_table[2]->Object(25) should not be a reference object.
m_instance_definition_table[2]->Object(26) should not be a reference object.
m_instance_definition_table[2]->Object(27) should not be a reference object.
m_instance_definition_table[2]->Object(28) should not be a reference object.
m_instance_definition_table[2]->Object(29) should not be a reference object.
m_instance_definition_table[2]->Object(30) should not be a reference object.
m_instance_definition_table[2]->Object(31) should not be a reference object.
m_instance_definition_table[2]->Object(32) should not be a reference object.
m_instance_definition_table[2]->Object(33) should not be a reference object.
m_instance_definition_table[2]->Object(34) should not be a reference object.
m_instance_definition_table[2]->Object(35) should not be a reference object.
m_instance_definition_table[2]->Object(36) should not be a reference object.
m_instance_definition_table[2]->Object(37) should not be a reference object.
m_instance_definition_table[2]->Object(38) should not be a reference object.
m_instance_definition_table[2]->Object(39) should not be a reference object.
m_instance_definition_table[2]->Object(40) should not be a reference object.
m_instance_definition_table[2]->Object(41) should not be a reference object.
m_instance_definition_table[2]->Object(42) should not be a reference object.
m_instance_definition_table[2]->Object(43) should not be a reference object.
m_instance_definition_table[2]->Object(44) should not be a reference object.
m_instance_definition_table[2]->Object(45) should not be a reference object.
m_instance_definition_table[2]->Object(46) should not be a reference object.
m_instance_definition_table[2]->Object(47) should not be a reference object.
m_instance_definition_table[2]->Object(48) should not be a reference object.
m_instance_definition_table[2]->Object(49) should not be a reference object.
m_instance_definition_table[2]->Object(50) should not be a reference object.
m_instance_definition_table[2]->Object(51) should not be a reference object.
m_instance_definition_table[2]->Object(52) should not be a reference object.
m_instance_definition_table[2]->Object(53) should not be a reference object.
m_instance_definition_table[2]->Object(54) should not be a reference object.
m_instance_definition_table[2]->Object(55) should not be a reference object.
m_instance_definition_table[2]->Object(56) should not be a reference object.
m_instance_definition_table[2]->Object(57) should not be a reference object.
m_instance_definition_table[2]->Object(58) should not be a reference object.
m_instance_definition_table[2]->Object(59) should not be a reference object.
m_instance_definition_table[2]->Object(60) should not be a reference object.
m_instance_definition_table[2]->Object(61) should not be a reference object.
m_instance_definition_table[2]->Object(62) should not be a reference object.
m_instance_definition_table[2]->Object(63) should not be a reference object.
m_instance_definition_table[2]->Object(64) should not be a reference object.
m_instance_definition_table[2]->Object(65) should not be a reference object.
m_instance_definition_table[2]->Object(66) should not be a reference object.
m_instance_definition_table[2]->Object(67) should not be a reference object.
m_instance_definition_table[2]->Object(68) should not be a reference object.
m_instance_definition_table[2]->Object(69) should not be a reference object.
m_instance_definition_table[2]->Object(70) should not be a reference object.
m_instance_definition_table[2]->Object(71) should not be a reference object.
m_instance_definition_table[2]->Object(72) should not be a reference object.
m_instance_definition_table[2]->Object(73) should not be a reference object.
m_instance_definition_table[2]->Object(74) should not be a reference object.
m_instance_definition_table[2]->Object(75) should not be a reference object.
m_instance_definition_table[2]->Object(76) should not be a reference object.
m_instance_definition_table[2]->Object(77) should not be a reference object.
m_instance_definition_table[2]->Object(78) should not be a reference object.
m_instance_definition_table[2]->Object(79) should not be a reference object.
m_instance_definition_table[2]->Object(80) should not be a reference object.
m_instance_definition_table[2]->Object(81) should not be a reference object.
m_instance_definition_table[2]->Object(82) should not be a reference object.
m_instance_definition_table[2]->Object(83) should not be a reference object.
m_instance_definition_table[2]->Object(84) should not be a reference object.
m_instance_definition_table[2]->Object(85) should not be a reference object.
m_instance_definition_table[2]->Object(86) should not be a reference object.
m_instance_definition_table[2]->Object(87) should not be a reference object.
m_instance_definition_table[2]->Object(88) should not be a reference object.
m_instance_definition_table[2]->Object(89) should not be a reference object.
m_instance_definition_table[2]->Object(90) should not be a reference object.
m_instance_definition_table[2]->Object(91) should not be a reference object.
m_instance_definition_table[2]->Object(92) should not be a reference object.
m_instance_definition_table[2]->Object(93) should not be a reference object.
m_instance_definition_table[2]->Object(94) should not be a reference object.
m_instance_definition_table[2]->Object(95) should not be a reference object.
m_instance_definition_table[2]->Object(96) should not be a reference object.
m_instance_definition_table[2]->Object(97) should not be a reference object.
m_instance_definition_table[2]->Object(98) should not be a reference object.
m_instance_definition_table[2]->Object(99) should not be a reference object.
m_instance_definition_table[2]->Object(100) should not be a reference object.
m_instance_definition_table[2]->Object(101) should not be a reference object.
m_instance_definition_table[2]->Object(102) should not be a reference object.
m_instance_definition_table[2]->Object(103) should not be a reference object.
m_instance_definition_table[2]->Object(104) should not be a reference object.
m_instance_definition_table[2]->Object(105) should not be a reference object.
m_instance_definition_table[2]->Object(106) should not be a reference object.
m_instance_definition_table[2]->Object(107) should not be a reference object.
m_instance_definition_table[2]->Object(108) should not be a reference object.
m_instance_definition_table[2]->Object(109) should not be a reference object.
m_instance_definition_table[2]->Object(110) should not be a reference object.
m_instance_definition_table[2]->Object(111) should not be a reference object.
m_instance_definition_table[2]->Object(112) should not be a reference object.
m_instance_definition_table[2]->Object(113) should not be a reference object.
m_instance_definition_table[2]->Object(114) should not be a reference object.
m_instance_definition_table[2]->Object(115) should not be a reference object.
m_instance_definition_table[2]->Object(116) should not be a reference object.
m_instance_definition_table[2]->Object(117) should not be a reference object.
m_instance_definition_table[2]->Object(118) should not be a reference object.
m_instance_definition_table[2]->Object(119) should not be a reference object.
m_instance_definition_table[2]->Object(120) should not be a reference object.
m_instance_definition_table[2]->Object(121) should not be a reference object.
m_instance_definition_table[2]->Object(122) should not be a reference object.
m_instance_definition_table[2]->Object(123) should not be a reference object.
m_instance_definition_table[2]->Object(124) should not be a reference object.
m_instance_definition_table[2]->Object(125) should not be a reference object.
m_instance_definition_table[2]->Object(126) should not be a reference object.
m_instance_definition_table[2]->Object(127) should not be a reference object.
m_instance_definition_table[2]->Object(128) should not be a reference object.
m_instance_definition_table[2]->Object(129) should not be a reference object.
m_instance_definition_table[2]->Object(130) should not be a reference object.
m_instance_definition_table[2]->Object(131) should not be a reference object.
m_instance_definition_table[2]->Object(132) should not be a reference object.
m_instance_definition_table[2]->Object(133) should not be a reference object.
m_instance_definition_table[2]->Object(134) should not be a reference object.
m_instance_definition_table[2]->Object(135) should not be a reference object.
m_instance_definition_table[2]->Object(136) should not be a reference object.
m_instance_definition_table[2]->Object(137) should not be a reference object.
m_instance_definition_table[2]->Object(138) should not be a reference object.
m_instance_definition_table[2]->Object(139) should not be a reference object.
m_instance_definition_table[2]->Object(140) should not be a reference object.
m_instance_definition_table[2]->Object(141) should not be a reference object.
m_instance_definition_table[2]->Object(142) should not be a reference object.
m_instance_definition_table[2]->Object(143) should not be a reference object.
m_instance_definition_table[2]->Object(144) should not be a reference object.
m_instance_definition_table[2]->Object(145) should not be a reference object.
m_instance_definition_table[2]->Object(146) should not be a reference object.
m_instance_definition_table[2]->Object(147) should not be a reference object.
m_instance_definition_table[2]->Object(148) should not be a reference object.
m_instance_definition_table[2]->Object(149) should not be a reference object.
m_instance_definition_table[2]->Object(150) should not be a reference object.
m_instance_definition_table[2]->Object(151) should not be a reference object.
m_instance_definition_table[2]->Object(152) should not be a reference object.
m_instance_definition_table[2]->Object(153) should not be a reference object.
m_instance_definition_table[2]->Object(154) should not be a reference object.
m_instance_definition_table[2]->Object(155) should not be a reference object.
m_instance_definition_table[2]->Object(156) should not be a reference object.
m_instance_definition_table[2]->Object(157) should not be a reference object.
m_instance_definition_table[2]->Object(158) should not be a reference object.
m_instance_definition_table[2]->Object(159) should not be a reference object.
m_instance_definition_table[2]->Object(160) should not be a reference object.
m_instance_definition_table[2]->Object(161) should not be a reference object.
m_instance_definition_table[2]->Object(162) should not be a reference object.
m_instance_definition_table[2]->Object(163) should not be a reference object.
m_instance_definition_table[2]->Object(164) should not be a reference object.
m_instance_definition_table[2]->Object(165) should not be a reference object.
m_instance_definition_table[2]->Object(166) should not be a reference object.
m_instance_definition_table[2]->Object(167) should not be a reference object.
m_instance_definition_table[2]->Object(168) should not be a reference object.
m_instance_definition_table[2]->Object(169) should not be a reference object.
m_instance_definition_table[2]->Object(170) should not be a reference object.
m_instance_definition_table[2]->Object(171) should not be a reference object.
m_instance_definition_table[2]->Object(172) should not be a reference object.
m_instance_definition_table[2]->Object(173) should not be a reference object.
m_instance_definition_table[2]->Object(174) should not be a reference object.
m_instance_definition_table[2]->Object(175) should not be a reference object.
m_instance_definition_table[2]->Object(176) should not be a reference object.
m_instance_definition_table[2]->Object(177) should not be a reference object.
m_instance_definition_table[2]->Object(178) should not be a reference object.
m_instance_definition_table[2]->Object(179) should not be a reference object.
m_instance_definition_table[2]->Object(180) should not be a reference object.
m_instance_definition_table[2]->Object(181) should not be a reference object.
m_instance_definition_table[2]->Object(182) should not be a reference object.
m_instance_definition_table[2]->Object(183) should not be a reference object.

Audit Summary:
375 object errors detected.
0 linetype table errors detected.
0 layer table errors detected.
375 block table errors detected.
0 font table errors detected.
0 annotation style table errors detected.
Table tally:
62 layers
8 instance definitions
8 annotation styles
0 fonts
7 linetypes
1268 rendering materials
Object tally:
1112 normal objects
0 locked objects
3 hidden objects
0 deleted objects (in undo buffer)
471 block definition objects
0 reference normal objects
0 reference locked objects
0 reference hidden objects
375 reference block definition objects
Audit found problems.

Posts: 1

Participants: 1

Read full topic

Rhino crashing when I set shaded view

$
0
0

@gennaro wrote:

Hi all,

I am facing a strange problem. When I draw something with my plugin and I try to turn the view from wireframe to shaded view Rhino crashes. I thought I had solved the problem using the Redraw() function but the problem comes out again. Do you have any idea of what can cause this crash?
Thanks!

Gennaro

Posts: 1

Participants: 1

Read full topic

C++ retrieve curson position

$
0
0

@Petras_Vestartas wrote:

Hi,

How can I retrieve point position without adding or selecting point, only by clicking with mouse on rhino window. The point location is always xy plane.

Should I use:
CRhinoGetPoint gp;

Similarly to command CurveBoolean when it ask to click inside region.
What is the input workflow inside?

Posts: 1

Participants: 1

Read full topic

Developer programm for plugin devs?

$
0
0

@ParanoidAndroid wrote:

Hi, is there some sort of official developer programm for plugin devs aside from this board?

Like a mailing list where one will receive notifications about preview versions or upcoming features (product and api-wise) etc. in some condensed manner? I’m asking because we’d like to increase the velocity of our dev. cycle when it comes to adapting to new Rhino features.

Posts: 3

Participants: 2

Read full topic


How to create a modified index? (for vertices and edges)

$
0
0

@John.S wrote:

Hello,

My understanding is that Rhino indexes vertices and edges similar to this:

ve_i_spacing_Default

Let’s say at this point a list is created in Python with all the corner vertices of this box. (v1, v4, v7, v10)

Then the box gets modified, adding a vertex or an edge and so the index gets shuffled.
Then the list is no longer accurate.

Is there a method that could be used in such a situation to have a relevant index even when the box gets modified, without having to re-scan it?

Below I came up with a version that might work, only if I knew how to implement it.

ve_i_spacing_Modified

The concept is to use something like index spacing. So there are empty indexes available for changes that might happen between the vertices or edges.

So on (1) there is the spaced index and on (2) the box has been modified.
The modified box (2) has its original corners with the same index values and the edges are also the same, with the exception of new or collapsed edges. No old index values become irrelevant, unless the vertex or edge no longer exists.

Any pointers how this can be accomplished ?

The mesh would not be moved, scaled or rotated, as I have read this affects the index values too.

As you could probably tell I am relatively new to developing, so I might have overlooked an already existing solution. I couldn’t find one with the searches that I have made though.

Any help greatly appreciated !

Posts: 1

Participants: 1

Read full topic

How to use ON_TransformBrepComponents function

$
0
0

@wayne387315 wrote:

I’d like to achieve the same result in C++.


I used SolidPtOn in Rhino5 and i found the function called ON_TransformBrepComponents in RhinoCommon SDK which achieve the same result probably.
However, i don’t know how to use this function.
Can someone post a simple example how to use it.Thanks!!!

Posts: 3

Participants: 3

Read full topic

C++ casting ON_Curve to ON_Polyline

$
0
0

@Petras_Vestartas wrote:

How can I cast ON_Curve to ON_Polyline?

This way it would not work, as ON_Polyline has no function cast:

const ON_Polyline* GetPolyline(const ON_Curve* crv)
{
	const ON_Polyline* p = 0;
	if (crv != 0)
		p = ON_Polyline::Cast(crv);
	return p;
}

Posts: 2

Participants: 2

Read full topic

[Q] What i the best possible way to project points on to meshes using RhinoCommon?

$
0
0

@D-W wrote:

I tried to use ProjectPointsToMeshes - but i quickly found out that it gives me all possible intersections instead of the first hit only (and there’s no option to pick how many hits i want to listen to) so i tried ProjectPointsToMeshesEx but here again i found out there’s no difference if ill pass for eg. Z dir or -Z dir and point indices don’t help much here to find out which point was first hit - besides i found out that indices correspond for each point hit but in reverse so first hit is always last - so i got lost how to use this here …

Closest point and pull points aren’t an option cause i need parallel projection on to mesh guided by axis.

Tried RayShoot but of course it doesn’t support meshes and finally there’s mesh ray but it returns only info if ray hit something.

Wanted to ask if somebody have idea how to achieve this before i’ll start writing own method for that from groundup.

Again in short i’m interested in red points:

Posts: 5

Participants: 2

Read full topic

C++ Split brep with plane

$
0
0

@Petras_Vestartas wrote:

Hi,

What is the method to split brep with plane in C++ sdk?

I found this sample file:

But it use other breps for splitting in this function *cutter is brep:
RhinoBrepSplit(*split, *cutter, tol, pieces)

Is there anything with plane splitting?

Posts: 2

Participants: 2

Read full topic

CreateRefinedLoopMesh, CreateRefinedCatmullClarkMesh bugs

$
0
0

@clement wrote:

Hi @dale,

i’ve tried to use Rhino.Geometry.Mesh.CreateRefinedLoopMesh using a simple quad or mesh plane. The result is always that some vertices are converged at the world origin, regardless of the loop formula used.

Using Rhino.Geometry.Mesh.CreateRefinedCatmullClarkMesh, i provided the settings for NakedEdgeMode like below:

Rhino.PrivateMeshCommands.MeshTypes.CreaseEdges.CornerFixedOtherCreased

the result is always that the corner faces are missing. My guess is both methods need further investigation. Could these 2 methods preserve mesh texture coordinates in the future ?

_
c.

Posts: 8

Participants: 5

Read full topic

FileSettings.FileLockingEnabled Not Working

$
0
0

@jason_stevenson wrote:

I am trying to disable File Locking in our Skin for Rhino. After setting these properties to false, they are still true.

What else should I be doing instead to disable this behavior?

FileSettings.FileLockingOpenWarning = false;
FileSettings.FileLockingEnabled = false;

Posts: 3

Participants: 2

Read full topic


RhinoApp.SerialNumber returns empty string on Mac

$
0
0

@Max_Eskin wrote:

I’m trying to add an error reporting feature to my plugin, and I want to send the Rhino serial number as a way to identify which instance the error is coming from. This works fine on Windows, but on my Mac version (5.4.2) RhinoApp.SerialNumber returns an empty string. The about window does display a serial number. Is there another way for me to get this?

Posts: 1

Participants: 1

Read full topic

Mesh.CreateFromTessellation not in Rhinocommon?

$
0
0

@samlochner wrote:

I can’t seem to find Mesh.CreateFromTessellation, is it in the rhinocommon dll or perhaps missing?

I’m hoping I can use it to create a mesh from a set of points. Is that possible? If not, any recommendations on how to create a mesh from a set of points? It’s going to be a really simple mesh, just a plane grid of vertices.

Thanks,
Sam

Posts: 5

Participants: 2

Read full topic

RhinoCommon data types mutable?

$
0
0

@Will_Wang wrote:

I’m accessing rhinocommon mostly through ironpython
Can someone tell me what data types are mutable and what not?
I’m guessing Point3d is immutable like an integer. A brep is probably mutable like a python dictionary. Is that right? what about curves, planes, lines, box, etc…?

Posts: 1

Participants: 1

Read full topic

How to Unjoin Brep Edges in Rhino SDK using C/C++

$
0
0

@tempoboy8421 wrote:

Hi,
I found there is a command called UnjoinEdge in Rhino5.
and I would like to achieve the same result in my C++ program.


Is there a method to unjoin Brep edges in RhinoCommon SDK for C++?
Can someone post a simple example to show how to do it?
Thanks~~~!

Posts: 4

Participants: 2

Read full topic

Getting Face Normal

$
0
0

@qtov wrote:

I would like to get the normal of a face as a line or two point3d coordinates.

The purpose of this is to calculate the angle between two normals. I need help just getting the line or point3d coordinates, the rest I know how to do.

I suppose I would need to use MeshFaceNormalList.Item (but I have no idea how)

Thanks

Posts: 2

Participants: 2

Read full topic

Viewing all 8561 articles
Browse latest View live