GH_BakeUtility

public class GH_BakeUtility
A utility class for baking. We heavily recommend you use this for any baking, as it handles invalid objects correctly.

Constructors

GH_BakeUtility

#
Create a new baker.
public GH_BakeUtility(
document
Grasshopper document, if any.
)

Properties

BakedCount

#
Gets the number of successful baking operations.
public int BakedCount { get; }

BakedIds

#
Gets all collected object ids.
public Guid[] BakedIds { get; }

InvalidCount

#
Gets the number of invalid objects encountered.
public int InvalidCount { get; }

Methods

BakeObject

#
Try and bake a single object.
public bool BakeObject(
obj,
Object to bake, must at least implement IGH_BakeAwareData.
att,
Object attributes.
doc
)
True if object was baked.

BakeObjects

#
Bake a bunch of objects.
public int BakeObjects(
objects,
Objects to bake.
att,
Attributes.
doc
Document.
)
Number of successful bake operations.