Class Representation
The representation of an element.
Inheritance
System.Object
Representation
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Elements.Geometry
Assembly: Hypar.Elements.dll
Syntax
public class Representation
Constructors
Representation(SolidOperation[])
Construct a Representation from SolidOperations. This is a convenience constructor
that can be used like this: new Representation(new Extrude(...))
Declaration
public Representation(params SolidOperation[] solidOperations)
Parameters
Type | Name | Description |
---|---|---|
SolidOperation[] | solidOperations | The solid operations composing this representation. |
Representation(IList<SolidOperation>)
Construct a representation.
Declaration
[JsonConstructor]
public Representation(IList<SolidOperation> solidOperations)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IList<SolidOperation> | solidOperations | A collection of solid operations. |
Properties
SolidOperations
A collection of solid operations.
Declaration
[JsonProperty("SolidOperations", Required = Required.Always)]
[Required]
public IList<SolidOperation> SolidOperations { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IList<SolidOperation> |
Operators
Implicit(SolidOperation to Representation)
Automatically convert a single solid operation into a representation containing that operation.
Declaration
public static implicit operator Representation(SolidOperation solidOperation)
Parameters
Type | Name | Description |
---|---|---|
SolidOperation | solidOperation | The solid operation composing this Representation. |
Returns
Type | Description |
---|---|
Representation |