public int Add(Geometry.Light light, ObjectAttributes attributes) { IntPtr pConstLight = light.ConstPointer(); IntPtr pConstAttributes = IntPtr.Zero; if (attributes != null) { pConstAttributes = attributes.ConstPointer(); } return(UnsafeNativeMethods.CRhinoLightTable_Add(m_doc.m_docId, pConstLight, pConstAttributes)); }