Ejemplo n.º 1
0
        public bool Modify(int index, Geometry.Light light)
        {
            bool rc = false;

            if (index >= 0)
            {
                IntPtr pConstLight = light.ConstPointer();
                rc = UnsafeNativeMethods.CRhinoLightTable_Modify(m_doc.m_docId, index, pConstLight);
            }
            return(rc);
        }
Ejemplo n.º 2
0
        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));
        }
Ejemplo n.º 3
0
        /// <example>
        /// <code source='examples\vbnet\ex_modifylightcolor.vb' lang='vbnet'/>
        /// <code source='examples\cs\ex_modifylightcolor.cs' lang='cs'/>
        /// <code source='examples\py\ex_modifylightcolor.py' lang='py'/>
        /// </example>
        public bool Modify(Guid id, Geometry.Light light)
        {
            int index = Find(id, true);

            return(Modify(index, light));
        }
Ejemplo n.º 4
0
 public int Add(Geometry.Light light)
 {
     return(Add(light, null));
 }