Represents a 3D polysurface. GH_Brep wraps the functionality of the OpenNURBS OnBrep class.

Constructors

GH_Brep

#
public GH_Brep()

GH_Brep

#
public GH_Brep(
brep
)

GH_Brep

#
public GH_Brep(
GH_Brep
other
)

GH_Brep

#
public GH_Brep(
id
)

Fields

m_value

protected T m_value
inherited fromGH_Goo<T>

Properties

Boundingbox

#
public override BoundingBox Boundingbox { get; }

ClippingBox

#
public BoundingBox ClippingBox { get; }
ClippingBox

IsGeometryLoaded

#
public override bool IsGeometryLoaded { get; }

IsReferencedGeometry

Gets a value indicating whether or not this geometry is referenced. Not all IGH_GeometricGoo implementations support referenced geometry.
public virtual bool IsReferencedGeometry { get; }
inherited fromGH_GeometricGoo<T>

IsValid

#
public override bool IsValid { get; }

IsValidWhyNot

#
Gets a string describing the state of "invalidness". If the instance is valid, then this property should return Nothing or String.Empty.
public override string IsValidWhyNot { get; }

ReferenceID

#
public override Guid ReferenceID { get; set; }

TypeDescription

#
public override string TypeDescription { get; }

TypeName

#
public override string TypeName { get; }

Value

#
public override Brep Value { get; set; }

Methods

AppendRenderGeometry

#
public void AppendRenderGeometry(
args,
materialHint
)

BakeGeometry

#
public bool BakeGeometry(
doc,
att,
ref Guid
obj_guid
)
BakeGeometry

BrepTightBoundingBox

#
Compute the boundingbox of a Brep object without meshing.
public static BoundingBox BrepTightBoundingBox(
in
Brep to measure.
)
The world aligned boundingbox of the object.

CastFrom

#
public override bool CastFrom(
source
)

CastTo<Q>

Attempt a cast to type Q.
public virtual bool CastTo<Q>(
ref Q
target
Pointer to target of cast.
)
inherited fromGH_Goo<T>
Remarks: If false, the target instance contents are not guaranteed to be valid.
True on success, false on failure.
CastTo

CastTo<T>

#
public override bool CastTo<T>(
ref T
target
)

ClearCaches

#
public override void ClearCaches()

DestroyPreviewMeshes

#
public void DestroyPreviewMeshes()

DrawViewportMeshes

#
public void DrawViewportMeshes()
DrawViewportMeshes

DrawViewportWires

#
public void DrawViewportWires()
DrawViewportWires

Duplicate

#
public override IGH_Goo Duplicate()

DuplicateBrep

#
public GH_Brep DuplicateBrep()

DuplicateGeometry

#
public override IGH_GeometricGoo DuplicateGeometry()

EmitProxy

#
public override IGH_GooProxy EmitProxy()

GetBoundingBox

#
public override BoundingBox GetBoundingBox(
xform
)

GetPreviewMeshes

#
public Mesh[] GetPreviewMeshes()
GetPreviewMeshes

LoadGeometry

#
If the geometry is referenced and not yet loaded, attempts to load the geometry.
public override bool LoadGeometry()
True if the geometry is loaded (or if it was already loaded), False on failure.

LoadGeometry

#
public override bool LoadGeometry()

Morph

#
public override IGH_GeometricGoo Morph(
xmorph
)

Read

#
public override bool Read(
reader
)
GH_Goo<T>.Read

ScriptVariable

#
public override object ScriptVariable()

ToString

#
public override string ToString()

Transform

#
public override IGH_GeometricGoo Transform(
Transform
xform
)

Write

#
public override bool Write(
writer
)
GH_Goo<T>.Write