Assembly: VMAppCore.dll This class is to represent the body(solid).
Inheritance
object ← ObservableObject ← LinkableBase ← ObjectBase ← Object<ObjectEventCore> ← BodyImplements
IObservableObject, IDisposableObject, ILinkable, IObjectBase, IObject, IEventProvider, IHasKeyObject, ILinkContainerEvent, IVerifiable, IHistoryObjectSerializable, IAttributeContainer, IReferencable, ITransformable, INavigatorItem, IContainer, ILinkContainer, IOwned, IHasID, IVisible, IMultiChangable, IEnabled, ITransparentable, IPartMarkerParent, IDrawFacet, IPostDeserializedInherited Members
Object<ObjectEventCore>.GetKey(), Object<ObjectEventCore>.Initialize(Unit.ConvertFactor), Object<ObjectEventCore>.SetIconColor(Canvas), Object<ObjectEventCore>.OnDeserialization(object), Object<ObjectEventCore>.CustomGetObjectData(SerializationInfo, StreamingContext), Object<ObjectEventCore>.RollbackEvent(), Object<ObjectEventCore>.OnDeserializedCore(object), Object<ObjectEventCore>.Key, Object<ObjectEventCore>.UntypedEventCore, Object<ObjectEventCore>.EventCore, Object<ObjectEventCore>.Attributes, ObjectBase.ReplaceEventCore(ObjectEventCore), ObjectBase.SetModifiedCore(ModifiedResult.ModifiedType), ObjectBase.AddPostDeserialize(StreamingContext), ObjectBase.LinkAddedToDocumentCore(IOwned, bool), ObjectBase.SetModified(ModifiedResult.ModifiedType), ObjectBase.SetModified(), ObjectBase.SetModified(ModifiedResult.ModifiedType, IDocument), ObjectBase.DestroyObject(object, LinkEventArgs), ObjectBase.DestroyObject(DestroyEventArgs), ObjectBase.DestroyObject(), ObjectBase.Initialize(Unit.ConvertFactor), ObjectBase.FixUp(ObjectBase), ObjectBase.DoWorkAfterUpdateContents(), ObjectBase.SetOldNameWithNewEntity(ObjectBase, ObjectBase), ObjectBase.SetIconColor(Canvas), ObjectBase.RemoveFromCreatedList(), ObjectBase.PostAddToDocument(), ObjectBase.PostRemoveFromDocument(Document), ObjectBase.GetArgumentList(LinkedList<ObjectBase>), ObjectBase.ResetInvalidEntity(), ObjectBase.OnDeserialization(object), ObjectBase.IsSerializableEvent(Delegate), ObjectBase.CustomGetObjectData(SerializationInfo, StreamingContext), ObjectBase.CheckAndUpdateLink(HashSet<ObjectBase>), ObjectBase.Verify(VerifiedResult), ObjectBase.ConnectProxy(), ObjectBase.RollbackEvent(), ObjectBase.LinkRequestUpdating(object, LinkEventArgs), ObjectBase.LinkRequestUpdate(object, LinkEventArgs), ObjectBase.LinkRequestDestroying(object, LinkEventArgs), ObjectBase.LinkRequestDestroy(object, LinkEventArgs), ObjectBase.LinkAddedToDocument(object, AddToDocEventArgs), ObjectBase.LinkRemovedFromDocument(object, RemoveFromDocEventArgs), ObjectBase.DisposeManagedResources(), ObjectBase.GetDestroyEventExtraData(), ObjectBase.OnLinkReserved(ILink, object, EventArgs), ObjectBase.CreateEntityWhenUpdateContents(Action), ObjectBase.GetObjectByKey(UIntPtr), ObjectBase.FindObjectOnXmlDeserialize(string), ObjectBase.UpdateContents(XmlReader, ObjectBase, string), ObjectBase.UpdateContents(XmlReader, ObjectBase), ObjectBase.UpdateContents(string, string), ObjectBase.UpdateContents(string), ObjectBase.SetFlagWhenXMLFile(string, bool), ObjectBase.IsEqualArray<T>(T[], T[]), ObjectBase.IsEqualList(List<double>, List<double>), ObjectBase.SetContainer(IOwned, bool), ObjectBase.GetTargetListForUpdate(), ObjectBase.SkipUpdateObjectImpl(), ObjectBase.raise_OnUpdating(object, LinkEventArgs), ObjectBase.raise_OnUpdate(object, LinkEventArgs), ObjectBase.raise_OnDestroying(object, LinkEventArgs), ObjectBase.raise_OnDestroy(object, LinkEventArgs), ObjectBase.raise_Destroying(object, Identifier), ObjectBase.raise_OnAdded(object, AddToDocEventArgs), ObjectBase.raise_OnRemoved(object, RemoveFromDocEventArgs), ObjectBase.raise_OnContentsUpdated(object, EventArgs), ObjectBase.Dispose(bool), ObjectBase.SkipModified, ObjectBase.ClearChildInfoBeforeDeserialize, ObjectBase.KeyImpl, ObjectBase.ID, ObjectBase.TopologyEntityTypeName, ObjectBase.ObjectStateForCircularError, ObjectBase.ObjectState, ObjectBase.IsChildExternable, ObjectBase.IsExternable, ObjectBase.Container, ObjectBase.Owner, ObjectBase.Document, ObjectBase.UntypedEventCore, ObjectBase.KernelKey, ObjectBase.Key, ObjectBase.OnContentsUpdated, ObjectBase.OnRemoved, ObjectBase.OnAdded, ObjectBase.Destroying, ObjectBase.OnDestroy, ObjectBase.OnDestroying, ObjectBase.OnUpdate, ObjectBase.OnUpdating, LinkableBase.OnDeserialization(object), ObservableObject.Dispose(), ObservableObject.RaisePropertyChanged(string), ObservableObject.RaisePropertyChanged(string, object, object), ObservableObject.Dispose(bool), ObservableObject.DisposeManagedResources(), ObservableObject.DisposeUnmanagedResources(), ObservableObject.IsDisposed, ObservableObject.TryDisposing, ObservableObject.Disposed, ObservableObject.Disposing, ObservableObject.PropertyChangedExtension Methods
LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects<T>(object, LinkPropertyType)Constructors
Body(Builder)
Initializes a new instance of the Body class.Parameters
builder Builder
The body’s builder.
Body()
Initializes a new instance of the Body class.Fields
g_dAccuracyForCADImportMassCalculate
This value is accuracy for [cad import mass calculate].Field Value
doubleg_dAccuracyForMassCalculate
This value is accuracy for [mass calculate].Field Value
doubleProperties
AccuracyForMassCalc
Gets or sets the accuracy for [mass calculate].Property Value
doubleBuilder
Gets or sets the builder.Property Value
BuilderEdges
Gets or sets the edges.Property Value
Body.EdgeContainerFaces
Gets or sets the faces.Property Value
Body.FaceContainerFacetAspectRatio
Gets or sets the facet aspect ratio.Property Value
ExpressionValueVariableIndexCont
Gets the index container.Property Value
Body.IndexContainerInvalid
Property Value
boolIsEnabled
Gets or sets IsEnabled state.Property Value
boolIsVisible
Gets or sets the layer.Property Value
boolLayer
Gets or sets the layer.Property Value
LayerMaterial
Gets or sets the material.Property Value
IMaterialMaximumFacetSize
Gets or sets the maximum facet size.Property Value
ExpressionValueVariableMaximumGridLine
Gets or sets the maximum grid line.Property Value
ExpressionValueVariableNameAttribute
Gets or sets the attribute of name.Property Value
stringSkipCalcMassProp
Gets or sets a value indicating whether skip [Calculate mass property].Property Value
boolSkipRebuildGeometry
Gets or sets a value indicating whether skip [Rebuild Geometry].Property Value
boolSurfaceAngularTolerance
Gets or sets the surface angular tolerance.Property Value
ExpressionValueVariableTransparentObject
Gets the transparent object.Property Value
ObjectBaseTransparentObjects
Gets the transparent objects.Property Value
ObjectBase[]UseApprox_eval
Gets or sets a value indicating whether use [Approx_eval].Property Value
boolUseFacetAspectRatio
Gets or sets a value indicating whether use [facet aspect ratio].Property Value
boolUseGRID_TO_EDGES
Gets or sets a value indicating whether use [GRID_TO_EDGES].Property Value
boolUseMaximumFacetSize
Gets or sets a value indicating whether use [maximum facet size].Property Value
boolUseMaximumGridLine
Gets or sets a value indicating whether use [maximum grid line].Property Value
boolUseRepairPatch
Gets or sets a value indicating whether use [RepairPatch].Property Value
boolUseSurfaceAngularTolerance
Gets or sets a value indicating whether use [surface angular tolerance].Property Value
boolVertices
Gets or sets the vertices.Property Value
Body.VertexContainer_Material
Gets or sets the material.Property Value
Linker<IMaterial>Methods
AddBodyCreatedList()
Add body to kernal’s create list.AddNameAttribute(string)
Add name attribute.Parameters
strNameAttribute string
The name attribute
CalculateMassProperty(ref double, ref double, ref TMatrix, ref double[], ref bool, double, bool)
Calculate mass property.Parameters
dMass double
The mass.
dVolume double
The volume.
matTransform TMatrix
The transformation.
arInertia double[]
The inertia.
bRegularized bool
whether calculate from regularized body.
dDensity double
The density.
bGlobal bool
whether inertia is global
CalculateMassProperty(ref double, ref double, ref TMatrix, ref double[], ref bool, bool, double)
Calculate mass property.Parameters
dMass double
The mass.
dVolume double
The volume.
matTransform TMatrix
The transformation.
arInertia double[]
The inertia.
bRegularized bool
whether calculate from regularized body.
bUpdate bool
update flag.
dDensity double
The density.
CalculateMassProperty(ref double, ref double, ref TMatrix, ref double[], ref bool, double)
Calculate mass property.Parameters
dMass double
The mass.
dVolume double
The volume.
matTransform TMatrix
The transformation.
arInertia double[]
The inertia.
bRegularized bool
whether calculate from regularized body.
dDensity double
The density.
CalculateMassProperty(ref double, ref double, ref TMatrix, ref double[], ref bool, bool)
Calculate mass property.Parameters
dMass double
The mass.
dVolume double
The volume.
matTransform TMatrix
The transformation.
arInertia double[]
The inertia.
bRegularized bool
whether calculate from regularized body.
bUpdate bool
update flag.
CalculateMassProperty(ref double, ref double, ref TMatrix, ref double[], ref bool)
Calculate mass property.Parameters
dMass double
The mass.
dVolume double
The volume.
matTransform TMatrix
The transformation.
arInertia double[]
The inertia.
bRegularized bool
whether calculate from regularized body.
CalculateMassProperty(ref double, ref double, ref TMatrix, ref double[], ref bool, double, double, bool)
Calculate mass property.Parameters
dMass double
The mass.
dVolume double
The volume.
matTransform TMatrix
The transformation.
arInertia double[]
The inertia.
bRegularized bool
whether calculate from regularized body.
dDensity double
dAccuracy double
The desire accuracy for mass calculate.
bGlobal bool
CalculateMassPropertyForAssembly(ref double, ref double, ref TMatrix, ref double[], ref bool, double)
Calculate mass property.Parameters
dMass double
The mass.
dVolume double
The volume.
matTransform TMatrix
The transformation.
arInertia double[]
The inertia.
bRegularized bool
whether calculate from regularized body.
dDensity double
The density.
CheckValidationAboutBuild(string)
Parameters
strXml string
Returns
boolClearFacetDictionary()
ConnectProxy()
ConvertUInt32Managed2Native(ref uint[], vector<unsigned int,std::allocator<unsigned int> >*)
Parameters
inputAryUInt uint[]
outputVecUInt [vector<unsigned int,std::allocator<unsigned int> >](std.vector<unsigned int,std.md)*
ConvertUInt32Native2Managed(vector<unsigned int,std::allocator<unsigned int> >*, ref uint[])
Parameters
inputVecUInt [vector<unsigned int,std::allocator<unsigned int> >](std.vector<unsigned int,std.md)*
outputAryUInt uint[]
ConvertVectorManaged2Native(ref VectorBase[], vector<_VM_VECTOR,std::allocator<_VM_VECTOR> >*)
Parameters
inputAryVec VectorBase[]
outputVecVec vector<_VM_VECTOR,std::allocator<_VM_VECTOR> >*
ConvertVectorNative2Managed(vector<_VM_VECTOR,std::allocator<_VM_VECTOR> >*, ref VectorBase[])
Parameters
inputVecVec vector<_VM_VECTOR,std::allocator<_VM_VECTOR> >*
outputAryVec VectorBase[]
CreateNastranFile(string, VectorBase[], uint[], uint[])
Parameters
strNastranPath string
aryPos VectorBase[]
aryConTria uint[]
aryConTetra uint[]
DoWorkAfterUpdateContents()
After update contents, do work.DrawEdge(int, double, TMatrix, Canvas)
gets the points that are placed with some interval on edge.Parameters
nEdgeIndex int
the edge index
dDistance double
the point intaval
matBase TMatrix
the base transform
canvas Canvas
The canvas.
DrawFacet(Canvas)
Draw facet. <param name=“canvas”>The canvas.</param>Parameters
canvas Canvas
DrawFacetByDefaultParameters(Canvas)
Draws facet.Parameters
canvas Canvas
The canvas has icon information.
DrawFacetInGlobal(Canvas)
Draw facet in global.Parameters
canvas Canvas
The canvas.
DrawFacetsOfFaces(IDrawFacet[], string, Canvas)
Parameters
arFaces IDrawFacet[]
strFacetOptionsXml string
canvas Canvas
ExistFace(ValueType)
Parameters
nID ValueType
Returns
boolExportPatch(string, ConvertFactor, string)
Parameters
strMesherPath string
factor Unit.ConvertFactor
strPath string
ExportSolid(string, ConvertFactor, string)
Parameters
strMesherPath string
factor Unit.ConvertFactor
strPath string
Find(string)
Find DAFUL object from the container by full name.Parameters
strName string
The DAFUL object full name.
Returns
IObjectBase The DAFUL object.FindLocal(string)
Find DAFUL object from the container by name.Parameters
strName string
The DAFUL object name.
Returns
IObjectBase The DAFUL object.FixUp(ObjectBase)
Before destroy the old object, perform a work.Parameters
ob ObjectBase
The old object.
Returns
booltrue if success; otherwise, false.
GenerateMeshInfo(string, AttributeFacetRefinementBase, ConvertFactor, MeshFreeMeshType, ref MeshFreeMeshType, ref VectorBase[], ref uint[], ref VectorBase[], ref uint[], bool)
Parameters
strMesherPath string
attrGeomOutputProp AttributeFacetRefinementBase
factor Unit.ConvertFactor
reqMeshType MeshFreeMeshType
resMeshType MeshFreeMeshType
aryPosTria VectorBase[]
aryConTria uint[]
aryPosTetra VectorBase[]
aryConTetra uint[]
bUseDSDL bool
GenerateMeshInfo(string, AttributeFacetRefinementBase, ConvertFactor, MeshFreeMeshType, ref MeshFreeMeshType, ref VectorBase[], ref uint[], ref VectorBase[], ref uint[])
Parameters
strMesherPath string
attrGeomOutputProp AttributeFacetRefinementBase
factor Unit.ConvertFactor
reqMeshType MeshFreeMeshType
resMeshType MeshFreeMeshType
aryPosTria VectorBase[]
aryConTria uint[]
aryPosTetra VectorBase[]
aryConTetra uint[]
GetAllFacePointAndNormal(ref List<VectorBase>, ref List<VectorBase>)
Parameters
lstPositions List<VectorBase>
lstDirections List<VectorBase>
Returns
boolGetAnalysisLevelInfo(double, ref List<double>, ref List<uint>)
Parameters
dVolume double
lstNodeDistance List<double>
lstNodeCount List<uint>
Returns
boolGetAnalysisLevelInfo(ref List<double>, ref List<uint>)
Parameters
lstNodeDistance List<double>
lstNodeCount List<uint>
Returns
boolGetAttrFacetRefineBase()
Get Attribute value on Facet RefinementReturns
AttributeFacetRefinementBase Facet Refinement Attribute valueGetBodyGeomInfo(vector<_VM_VECTOR,std::allocator<_VM_VECTOR> >*, vector<unsigned int,std::allocator<unsigned int> >*, AttributeFacetRefinementBase, double, bool)
Parameters
vectPosTria vector<_VM_VECTOR,std::allocator<_VM_VECTOR> >*
vecConTria [vector<unsigned int,std::allocator<unsigned int> >](std.vector<unsigned int,std.md)*
attrGeomOutputProp AttributeFacetRefinementBase
dLengthFactor double
bUseDSDL bool
Returns
boolGetBodyGeomInfo(ref VectorBase[], ref uint[], AttributeFacetRefinementBase, double, bool)
Parameters
aryPosTria VectorBase[]
aryConTria uint[]
attrGeomOutputProp AttributeFacetRefinementBase
dLengthFactor double
bUseDSDL bool
Returns
boolGetBodyGeomInfo(ref VectorBase[], ref uint[], AttributeFacetRefinementBase, double)
Parameters
aryPosTria VectorBase[]
aryConTria uint[]
attrGeomOutputProp AttributeFacetRefinementBase
dLengthFactor double
Returns
boolGetBodyGeomInfoForDFG(AttributeFacetRefinementBase, ref VectorBase[], ref uint[])
Parameters
attrGeomOutputProp AttributeFacetRefinementBase
aryPosTria VectorBase[]
aryConTria uint[]
Returns
boolGetBoundingBox(TMatrix, ref VectorBase, ref VectorBase, BoxingMode)
Parameters
matT TMatrix
vecMinPt VectorBase
vecMaxPt VectorBase
boxingMode BoxingMode
Returns
boolGetBoundingBox(TMatrix, ref VectorBase, ref VectorBase)
Parameters
matT TMatrix
vecMinPt VectorBase
vecMaxPt VectorBase
Returns
boolGetCADGeomNameAttribute(string, ref List<string>)
Parameters
strPrefix string
lstName List<string>
GetColor()
Get color. <returns>The color</returns>Returns
ColorGetDefaultMaxFacetSize()
Get default maximum facet sizeReturns
double Default maximum facet sizeGetDefaultMaxPenetration(ref double)
Get default maximum penetration. <param name=“dMaxPenetration”>The maximum penetration.</param>Parameters
dMaxPenetration double
Returns
boolGetEdgeCount()
Get the number of edge. -1 : errorReturns
int The number of edge.GetEdgeIndex(ValueType)
Parameters
nID ValueType
Returns
intGetEdgePoints(int, double, TMatrix, ref List<VectorBase>)
Parameters
nEdgeIndex int
dDistance double
matBase TMatrix
lstPoints List<VectorBase>
Returns
boolGetEdges(ICollection<int>)
Parameters
Colors ICollection<int>
Returns
List<Edge>GetEdges()
get all edges.Returns
List<Edge> list of all edgesGetFaceColors()
get all face colors.Returns
List<int> list of all face colors.GetFaceIndex(ValueType)
Parameters
nID ValueType
Returns
intGetFaces(ICollection<int>)
Parameters
Colors ICollection<int>
Returns
List<Face>GetFaces()
get all faces.Returns
List<Face> list of all facesGetFacesInfo_NormalAndCenterPt(List<Face>, ref Dictionary<Face, VectorBase>, ref Dictionary<Face, VectorBase>)
Parameters
lstFace List<Face>
dic_vecNormal Dictionary<Face, VectorBase>
dic_vecCenterPt Dictionary<Face, VectorBase>
GetFacetInfo(ref VectorBase[], ref int[])
Get facet information. <param name=“arPt”>facet point information.</param><param name=“arConnectivity”>facet connectivity inforamtion.</param>Parameters
arPt VectorBase[]
arConnectivity int[]
GetFacetPositions(Face[], string)
Parameters
arFaces Face[]
strFacetOptionsXml string
Returns
VectorBase[]GetGeomInfoOfFaces(Body, Face[], string, bool, UIntPtr)
Parameters
body Body
arFaces Face[]
strFacetOptionsXml string
bSkipMidPoints bool
pGeomInfo UIntPtr
GetLumpCount()
Get the number of lump. -1 : errorReturns
int The number of lump.GetModelNavigatorInformationImpl(XmlDocument, XmlElement, bool)
Gets the model navigator information implementation.Parameters
xmlDom XmlDocument
The navigator information xml.
xmlRootEle XmlElement
The navigator information xml root element.
bHasChild bool
true if has a child object; otherwise, false.
Returns
boolGetNearest4PointOnFaceWithRange(VectorBase, double, VectorBase, VectorBase, bool, VectorBase[])
Parameters
vecUserPos VectorBase
dRange double
vecNormalDirection VectorBase
vecShearDirection VectorBase
bBase bool
vecNearest4Pos VectorBase[]
Returns
boolGetNearestPointAndNormalOnFace(VectorBase, VectorBase, VectorBase)
Parameters
vCenterPoint VectorBase
vecPoint VectorBase
vecNormal VectorBase
Returns
boolGetNearestPointOnFace(VectorBase, ref VectorBase)
Parameters
vecUserPos VectorBase
vecNearestPos VectorBase
GetNearestPointOnFaceWithDirection(VectorBase, VectorBase, double, ref VectorBase)
Parameters
vecUserPos VectorBase
vecNormalDir VectorBase
dRange double
vecNearestPos VectorBase
Returns
boolGetNewEntityName(string, bool, int, int)
Generate an unique DAFUL object name from the container using the prefix name.Parameters
strPrefix string
The DAFUL object prefix name.
bUseUnderLine bool
Whether use underline.
nNumFigure int
The Number of Figure.
nStartIndex int
The start index.
Returns
string The DAFUL object name.GetNewEntityName(string, bool, int)
Generate an unique DAFUL object name from the container using the prefix name.Parameters
strPrefix string
The DAFUL object prefix name.
bUseUnderLine bool
Whether use underline.
nNumFigure int
The Number of Figure.
Returns
string The DAFUL object name.GetNewEntityName(string)
Generate an unique DAFUL object name from the container using the prefix name.Parameters
strPrefix string
The DAFUL object prefix name.
Returns
string The DAFUL object name.GetNormalOnFace(VectorBase, ref VectorBase)
gets the normal direction at some point on face. {1 : kernel api error} {2 : invalid body} {21 : fail to get faces} {22 : kernel function error}Parameters
vecPosition VectorBase
the point position
vecNormal VectorBase
result normal direction
Returns
bool if operation success then return true.GetPointAndDirection(ref VectorBase, ref VectorBase)
Get point and direction.Parameters
vecPosition VectorBase
The point.
vecDirection VectorBase
The direction.
Returns
booltrue if success; otherwise, false.
GetSortOfBody()
Gets type of body.Returns
BodyType body typeGetStartPointOfClosedLoop(List<Edge>, ref VectorBase)
Parameters
lstEdges List<Edge>
vecPosition VectorBase
Returns
boolGetTargetListForUpdate()
Gets the update objects.Returns
List<IEventProvider>GetUnnamedObjectName(object)
Get an unnamed object name.Parameters
obUnnamed object
The unnamed object.
Returns
string The unnamed object name.GetVertexIndex(ValueType)
Parameters
nID ValueType
Returns
intGetVoidCount()
Gets the void count.Returns
intGetVoidPoints(double[], ref VectorBase[])
Get Inner point of void shells.Parameters
ardScale double[]
aryPoints VectorBase[]
The list of inner point of void shells.
Returns
int -1 : error, 0 : finding successs, positive number : the number of not found case.GetWireLastPoint(ref VectorBase)
gets the position of last point on wire body. {1 : kernel api error} {2 : invalid body} {21 : fail to get faces} {22 : kernel function error}Parameters
vecPosition VectorBase
the point position
Returns
bool if operation success then return true.GetWirePoints(double, ref List<VectorBase>)
Parameters
dDistance double
lstPoints List<VectorBase>
Returns
boolGetWirePointsAndTangents(double, ref List<VectorBase>, ref List<VectorBase>)
Parameters
dDistance double
lstPoints List<VectorBase>
lstTangents List<VectorBase>
Returns
boolGetWirePointsAndTangentsWithSection(double, VectorBase, VectorBase, ref List<VectorBase>, ref List<VectorBase>)
Parameters
dDistance double
vecFirst VectorBase
vecSecond VectorBase
lstPoints List<VectorBase>
lstTangents List<VectorBase>
Returns
boolHighlightBuilder()
highlignt for body’s builder.InitialSetBuildInfo(string)
Parameters
strBuilderXml string
Initialize(ConvertFactor)
Initializes member through unit convert factor.Parameters
factor Unit.ConvertFactor
The unit convert factor.
IsNonManifold()
determines if a body is a nonmanifold.Returns
bool if a body is a nonmanifold then return true.IsWireBody()
determines if a body is a wire.Returns
bool if a body is a wire then return true.LinkRequestUpdate(object, LinkEventArgs)
Request for update the linked object.Parameters
objNotifier object
The linked object.
arg LinkEventArgs
The LinkEventArgs instance containing the event data.
OnDeserialization(object)
Called when [deserialization].Parameters
sender object
The sender.
OnPostDeserialized(StreamingContext)
Parameters
context StreamingContext
PostRemoveFromDocument(Document)
Call when post [remove from document].Parameters
document Document
The document
PrepareFacesWithColor()
prepare the face with colorReturns
bool if a body has the face color then return true.ReDrawChangeFacet()
RebuildGeometry(object, LinkEventArgs)
Rebuild geometry.Parameters
objBuilder object
The builder.
args LinkEventArgs
The event handler.
RelationWithPoint(VectorBase)
A point may be in, on, or off the this body. The returned values corresponding to these relationships are: 1 : point in entity 0 : point on entity -1 : point off entity -2 : errorParameters
vecPosition VectorBase
the point position
Returns
int 1 or 0 or -1 or -2RepairTopology()
repair the invalid topology.ReplaceCAD(List<ReplaceCADInfo>)
Parameters
lstInfo List<Body.ReplaceCADInfo>
ResetBuildInfo(string)
Reset build Information. <param name=“strInfo”>build Information.</param>Parameters
strInfo string
RunTetraMesher(string, vector<_VM_VECTOR,std::allocator<_VM_VECTOR> >*, vector<unsigned int,std::allocator<unsigned int> >*, vector<_VM_VECTOR,std::allocator<_VM_VECTOR> >*, vector<unsigned int,std::allocator<unsigned int> >*)
Parameters
strMesherPath string
vecPosTria vector<_VM_VECTOR,std::allocator<_VM_VECTOR> >*
vecConTria [vector<unsigned int,std::allocator<unsigned int> >](std.vector<unsigned int,std.md)*
vecPosTetra vector<_VM_VECTOR,std::allocator<_VM_VECTOR> >*
vecConTetra [vector<unsigned int,std::allocator<unsigned int> >](std.vector<unsigned int,std.md)*
Returns
boolRunTetraMesher(string, ref VectorBase[], ref uint[], ref VectorBase[], ref uint[])
Parameters
strMesherPath string
aryPosTria VectorBase[]
aryConTria uint[]
aryPosTetra VectorBase[]
aryConTetra uint[]
Returns
boolSetColor(Color)
Set color. <param name=“color”>The color.</param>Parameters
color Color
SetGeometryRepresentation(string, string, bool)
Set geometry representation.Parameters
strGeom string
The geometry information.
strDefaultGeom string
The geometry information when checked default value.
bUseRedraw bool
The redraw flag.
Returns
boolSetModifiedBody()
SetTransparency(double)
Set transparency. <param name=“dTransp”>The transparency.</param>Parameters
dTransp double
SortEdges(List<Edge>)
Parameters
lstEdges List<Edge>
Returns
List<Edge>UpdateBody(bool)
Update body. <param name=“bBuild”>The body build flag.</param>Parameters
bBuild bool