Show / Hide Table of Contents

Class Solid

Represents a solid EntityObject.

Inheritance
System.Object
DxfObject
EntityObject
Solid
Implements
IHasXData
System.ICloneable
Inherited Members
EntityObject.LayerChanged
EntityObject.OnLayerChangedEvent(Layer, Layer)
EntityObject.LinetypeChanged
EntityObject.OnLinetypeChangedEvent(Linetype, Linetype)
EntityObject.XDataAddAppReg
EntityObject.OnXDataAddAppRegEvent(ApplicationRegistry)
EntityObject.XDataRemoveAppReg
EntityObject.OnXDataRemoveAppRegEvent(ApplicationRegistry)
EntityObject.Reactors
EntityObject.Type
EntityObject.Color
EntityObject.Layer
EntityObject.Linetype
EntityObject.Lineweight
EntityObject.Transparency
EntityObject.LinetypeScale
EntityObject.IsVisible
EntityObject.Normal
EntityObject.Owner
EntityObject.XData
EntityObject.TransformBy(Matrix4)
EntityObject.ToString()
DxfObject.CodeName
DxfObject.Handle
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)
Namespace: netDxf.Entities
Assembly: CADability.dll
Syntax
public class Solid : EntityObject, IHasXData, ICloneable

Constructors

| Improve this Doc View Source

Solid()

Initializes a new instance of the Solid class.

Declaration
public Solid()
| Improve this Doc View Source

Solid(Vector2, Vector2, Vector2)

Initializes a new instance of the Solid class.

Declaration
public Solid(Vector2 firstVertex, Vector2 secondVertex, Vector2 thirdVertex)
Parameters
Type Name Description
Vector2 firstVertex

Solid Vector2 in OCS (object coordinate system).

Vector2 secondVertex

Solid Vector2 in OCS (object coordinate system).

Vector2 thirdVertex

Solid Vector2 in OCS (object coordinate system).

| Improve this Doc View Source

Solid(Vector2, Vector2, Vector2, Vector2)

Initializes a new instance of the Solid class.

Declaration
public Solid(Vector2 firstVertex, Vector2 secondVertex, Vector2 thirdVertex, Vector2 fourthVertex)
Parameters
Type Name Description
Vector2 firstVertex

Solid Vector2 in OCS (object coordinate system).

Vector2 secondVertex

Solid Vector2 in OCS (object coordinate system).

Vector2 thirdVertex

Solid Vector2 in OCS (object coordinate system).

Vector2 fourthVertex

Solid Vector2 in OCS (object coordinate system).

Properties

| Improve this Doc View Source

Elevation

Gets or sets the solid elevation.

Declaration
public double Elevation { get; set; }
Property Value
Type Description
System.Double
Remarks

This is the distance from the origin to the plane of the solid.

| Improve this Doc View Source

FirstVertex

Gets or sets the first solid Vector2.

Declaration
public Vector2 FirstVertex { get; set; }
Property Value
Type Description
Vector2
| Improve this Doc View Source

FourthVertex

Gets or sets the fourth solid Vector2.

Declaration
public Vector2 FourthVertex { get; set; }
Property Value
Type Description
Vector2
| Improve this Doc View Source

SecondVertex

Gets or sets the second solid Vector2.

Declaration
public Vector2 SecondVertex { get; set; }
Property Value
Type Description
Vector2
| Improve this Doc View Source

Thickness

Gets or sets the thickness of the solid.

Declaration
public double Thickness { get; set; }
Property Value
Type Description
System.Double
| Improve this Doc View Source

ThirdVertex

Gets or sets the third solid Vector2.

Declaration
public Vector2 ThirdVertex { get; set; }
Property Value
Type Description
Vector2

Methods

| Improve this Doc View Source

Clone()

Creates a new Solid that is a copy of the current instance.

Declaration
public override object Clone()
Returns
Type Description
System.Object

A new Solid that is a copy of this instance.

Overrides
EntityObject.Clone()
| Improve this Doc View Source

TransformBy(Matrix3, Vector3)

Moves, scales, and/or rotates the current entity given a 3x3 transformation matrix and a translation vector.

Declaration
public override void TransformBy(Matrix3 transformation, Vector3 translation)
Parameters
Type Name Description
Matrix3 transformation

Transformation matrix.

Vector3 translation

Translation vector.

Overrides
EntityObject.TransformBy(Matrix3, Vector3)
Remarks

Matrix3 adopts the convention of using column vectors to represent a transformation matrix.

Implements

IHasXData
System.ICloneable
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX