honeybee.radiance.mixture package

Submodules

honeybee.radiance.mixture.mixdata module

Radiance Mixdata Mixture.

http://radsite.lbl.gov/radiance/refer/ray.html#Mixdata

class honeybee.radiance.mixture.mixdata.Mixdata(name, modifier=None, values=None, is_opaque=None)[source]

Bases: honeybee.radiance.mixture.mixturebase.RadianceMixture

Radiance Mixdata Material.

Mixdata combines two modifiers using an auxiliary data file:

mod mixdata id 5+n+

foreground background func datafile funcfile x1 x2 .. xn transform

0 m A1 A2 .. Am

honeybee.radiance.mixture.mixfunc module

Radiance Mixfunc Mixture.

http://radsite.lbl.gov/radiance/refer/ray.html#Mixfunc

class honeybee.radiance.mixture.mixfunc.Mixfunc(name, modifier=None, values=None, is_opaque=None)[source]

Bases: honeybee.radiance.mixture.mixturebase.RadianceMixture

Radiance Mixfunc Material.

A mixfunc mixes two modifiers procedurally. It is specified as follows:

mod mixfunc id 4+ foreground background vname funcfile transform 0 n A1 A2 .. An

Foreground and background are modifier names that must be defined earlier in the scene description. If one of these is a material, then the modifier of the mixfunc must be “void”. (Either the foreground or background modifier may be “void”, which serves as a form of opacity control when used with a material.) Vname is the coefficient defined in funcfile that determines the influence of foreground. The background coefficient is always (1-vname).

honeybee.radiance.mixture.mixpict module

Radiance Mixpict Mixture.

http://radsite.lbl.gov/radiance/refer/ray.html#Mixpict

class honeybee.radiance.mixture.mixpict.Mixpict(name, modifier=None, values=None, is_opaque=None)[source]

Bases: honeybee.radiance.mixture.mixturebase.RadianceMixture

Radiance Mixpict Material.

Mixpict combines two modifiers based on a picture:

mod mixpict id 7+

foreground background func pictfile funcfile u v transform

0 m A1 A2 .. Am

The mixing coefficient function “func” takes three arguments, the red, green and blue values corresponding to the pixel at (u,v).

honeybee.radiance.mixture.mixtext module

Radiance Mixtext Mixture.

http://radsite.lbl.gov/radiance/refer/ray.html#Mixtext

class honeybee.radiance.mixture.mixtext.Mixtext(name, modifier=None, values=None, is_opaque=None)[source]

Bases: honeybee.radiance.mixture.mixturebase.RadianceMixture

Radiance Mixtext Material.

Mixtext uses one modifier for the text foreground, and one for the background:

mod mixtext id 4 foreground background fontfile textfile 0 9+

Ox Oy Oz Rx Ry Rz Dx Dy Dz [spacing]

or:

mod mixtext id 4+N

foreground background fontfile . This is a line with N words …

0 9+

Ox Oy Oz Rx Ry Rz Dx Dy Dz [spacing]

honeybee.radiance.mixture.mixturebase module

Base Radiance Mixtures class.

http://radsite.lbl.gov/radiance/refer/ray.html#Mixtures

class honeybee.radiance.mixture.mixturebase.RadianceMixture(name, modifier=None, values=None, is_opaque=None)[source]

Bases: honeybee.radiance.primitive.Primitive

Base class for Radiance mixtures.

A mixture is a blend of one or more materials or textures and patterns. Blended materials should not be light source types or virtual source types.

name

Primitive name as a string. Do not use white space and special character.

modifier

Modifier. It can be primitive, mixture, texture or pattern. (Default: “void”).

values

A dictionary of primitive data. key is line number and item is the list of values {0: [], 1: [], 2: [‘0.500’, ‘0.500’, ‘0.500’, ‘0.000’, ‘0.050’]}

isRadianceMixture

Indicate that this object is a Radiance Material.

Module contents

Radiance Mixtures.

A mixture is a blend of one or more materials or textures and patterns. Blended materials should not be light source types or virtual source types.