Click or drag to resize

PFoam Class

[Missing <summary> documentation for "T:PolyFramework.PFoam"]

Inheritance Hierarchy
SystemObject
  PolyFrameworkPFoam

Namespace:  PolyFramework
Assembly:  PolyFramework (in PolyFramework.dll) Version: 0.5.0.0 (0.5.0.0)
Syntax
[SerializableAttribute]
public class PFoam

The PFoam type exposes the following members.

Constructors
  NameDescription
Public methodPFoam
Initializes a new instance of the PFoam class
Top
Properties
  NameDescription
Public propertyCells
Public propertyCentroid
Public propertyDual
Public propertyEdges
Public propertyExtEdges
The (sub)list of edges sticking out of the primer exterior cell - this applies to the dual only
Public propertyExtFaces
The (sub)list of incomplete faces sticking outside of the exterior primer cell - this applies to dual only
Public propertyExtVetices
The (sub)list of the vertexes outside of the exterior cell - this applies to the dual only
Public propertyFaces
Public propertyId
Public propertyMaxDeviation
Public propertyVertices
Top
Methods
  NameDescription
Public methodBakeCellsAsBreps
Public methodBlueBrepFaces
Public methodCellPartition
Creates "ripples" of cells originating from the input list of cells The input cells can be disjoint "ripples" will be created from each cluster.
Public methodComputeDualVertices
Alternative method used for refreshing the dual when there is no need to created the topology structure. Just the new positions for the vertices are computed.
Public methodComputePrimalVertices
Alternative method used for refreshing the dual when there is no need to created the topology structure. Just the new positions for the vertices are computed.
Public methodConstructCells
Extract all the facePairs from the half-edges into one dictionary. Create all the cells from the face pairs
Public methodConstructCellsAndSplit
Extract all the facePairs from the half-edges into one dictionary. Create all the cells from the face pairs
Public methodContamination
Creates outward waves from a preexisting specified set of sets of cells. Each set creates its own waves
Public methodCreateDual
Creates another polyhedral foam, the dual of the object that invokes the method
Public methodCreatePrimal
Creates another polyhedral foam, the dual of the object that invokes the method This version is made to create the dual of the dual - so the primal
Public methodEdgeSmoothing
Edge length smoothing routine. All edges will be resized based on specified parameters. Orientation will be kept within the supplied tolerance. Edges will be resized inside the supplied foam object.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodExtractPairEdges
Adds the edge pairs to the list of the foam object
Public methodExtractPairFaces
Adds the face pairs to the list of the foam object.
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFoamPartition
Creates a list of cell lists based on the cell connection graph Cell->Face->FacePair->NeighborCell Used mostly for splitting separate parts of the foam
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodHide
Public methodIsForm
Return true if the diagram is form ;
Public methodMakeCells
Public methodMakeMultipleCells
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodMoveFaceVertices
Public methodMoveFaceVertices_Form
Public methodOffset
Offsets a foam in 3d space
Public methodPartition
This is not used atm Creates a set of edge lists based on BFS
Public methodPerp
Perpendicularization of the edges based on the normal stored in the .Dual.Normal (face)
Public methodPerpSoft
Perpendicularization of the edges based on the normal stored in the .Dual.Normal (face)
Public methodPickEdge
Public methodPickEdges
Public methodPickEdgeSingle
Public methodPickFaces
Public methodPickVertex
Public methodPickVertexSingle
Simple version of the above method that only returns a single vertex Does not add any properties to the vertex.
Public methodPipeDual
Builds a pipe representation of the PolyFrame It bakes it to the document together with a line representation for all elements.
Public methodPipeGeoDual
Create a the pipe system for the Edges of the Pfoam Also output the colors for the edges/pipes This is mostly for Grasshopper use.
Public methodPlanarize
Public methodPlanarizeSoft
Public methodProcessBFaces
Create part of the hierarchy of the HalfFace data structure
Public methodProcessFaces
Create part of the hierarchy of the HalfFace data structure
Public methodSaveAsCells
Creates the cell geometry as polySurfaces
Public methodSaveAsEdges
Saves the foam as a group of color-coded lines in the Rhino document For each line a user dictionary is saved with the following entries: EdgeId, StartVertexId, EndVertexId The first line contains a JSON serialization for the whole foam + If available the dual will also be saved
Public methodSaveAsFaces
Saves the foam object as a set of trimmed surfaces (one faced breps) For each brep it saves an entry in the user dictionary with the faceId For each vertex in the brep as Point an entry in the user dictionary is saved with the PFvertex Id
Public methodSaveToDocument(ContainerType)
Public methodSaveToDocument(Boolean, ContainerType)
Public methodScaleEdges
The method is for internal use. It takes care of an internal loop that scales the edges to the average
Public methodSerializeDict
Public methodSerializeFoamToFile
Public methodSerializeJson
Serializes the whole foam as a JSON string
Public methodSetVertexConstraints(IListPFVertex, RhinoObject, Double, Boolean)
Public methodSetVertexConstraints(IListPFVertex, GeometryBase, Double, Boolean)
Public methodShow
Public methodShowCells
Public methodSimpleSmoothing2
Edge length smoothing routine. All edges will be resized based on specified parameters. Orientation will be kept within the supplied tolerance. Edges will be resized inside the supplied foam object.
Public methodSortPartsInFaces
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUpdateEdgesWithFaces
Puts all the faces in the corresponding edges. Also looks to see if the edge is naked and marks it and its face as external
Public methodVolumeSphCyl
Top
See Also