Public Member Functions | |
| __init__ (self, shellgen, float inner_resolution, str workdir) | |
| build_cap_geo (self, path) | |
| mesh_cap (self) | |
| instantiate (self, builder, cap) | |
Public Attributes | |
| sg = shellgen | |
| w = shellgen.w | |
| inner_resolution = inner_resolution | |
| workdir = workdir | |
Protected Member Functions | |
| _interpret (self, meta, nodes, elements) | |
| corc.caps.CapGenerator.__init__ | ( | self, | |
| shellgen, | |||
| float | inner_resolution, | ||
| str | workdir ) |
|
protected |
Snap boundary nodes to exact slot positions and classify every
cap node: ('ring', layer, slot) / ('dom', slot) / ('center',) /
('interior',). Returns dict with node arrays and tris per piece.
| corc.caps.CapGenerator.build_cap_geo | ( | self, | |
| path ) |
Write the planar cap .geo. Returns metadata needed to interpret the mesh: ring slot positions and surface ids.
| corc.caps.CapGenerator.instantiate | ( | self, | |
| builder, | |||
| cap ) |
Create front and back cap instances in the builder, wiring boundary nodes to the strip ring ids. Returns nothing; fills builder.cap_pairs, cap surface tags and builder.vertex_nodes.
| corc.caps.CapGenerator.mesh_cap | ( | self | ) |
| corc.caps.CapGenerator.inner_resolution = inner_resolution |
| corc.caps.CapGenerator.sg = shellgen |
| corc.caps.CapGenerator.w = shellgen.w |
| corc.caps.CapGenerator.workdir = workdir |