#include <SbPolyhedrizeAction.h>
Definition at line 16 of file SbPolyhedrizeAction.h.
◆ SbPolyhedrizeAction() [1/2]
SbPolyhedrizeAction::SbPolyhedrizeAction |
( |
| ) |
|
◆ ~SbPolyhedrizeAction()
SbPolyhedrizeAction::~SbPolyhedrizeAction |
( |
| ) |
|
|
virtual |
◆ SbPolyhedrizeAction() [2/2]
◆ getPolyhedron()
◆ handleBox()
void SbPolyhedrizeAction::handleBox |
( |
const GeoBox * |
box | ) |
|
|
virtual |
◆ handleCons()
void SbPolyhedrizeAction::handleCons |
( |
const GeoCons * |
cons | ) |
|
|
virtual |
◆ handleGenericTrap()
void SbPolyhedrizeAction::handleGenericTrap |
( |
const GeoGenericTrap * |
gentrap | ) |
|
|
virtual |
Definition at line 271 of file SbPolyhedrizeAction.cxx.
273 std::vector<std::pair<double,double> > vertices;
275 for(
size_t i=0;
i<8; ++
i)
276 vertices.push_back(std::pair<double,double>(gentrap->getVertices()[
i].x(),gentrap->getVertices()[
i].y()));
◆ handleIntersection()
void SbPolyhedrizeAction::handleIntersection |
( |
const GeoShapeIntersection * |
isect | ) |
|
|
virtual |
◆ handlePara()
void SbPolyhedrizeAction::handlePara |
( |
const GeoPara * |
para | ) |
|
|
virtual |
◆ handlePcon()
void SbPolyhedrizeAction::handlePcon |
( |
const GeoPcon * |
pcon | ) |
|
|
virtual |
Definition at line 117 of file SbPolyhedrizeAction.cxx.
119 double *
z =
new double[pcon->getNPlanes ()];
120 double *rmn =
new double[pcon->getNPlanes ()];
121 double *rmx =
new double[pcon->getNPlanes ()];
123 for (
unsigned s = 0;
s < pcon->getNPlanes ();
s++) {
124 z[
s] = pcon->getZPlane (
s);
125 rmn[
s] = pcon->getRMinPlane (
s);
126 rmx[
s] = pcon->getRMaxPlane (
s);
◆ handlePgon()
void SbPolyhedrizeAction::handlePgon |
( |
const GeoPgon * |
pgon | ) |
|
|
virtual |
Definition at line 135 of file SbPolyhedrizeAction.cxx.
137 double *
z =
new double[pgon->getNPlanes ()];
138 double *rmn =
new double[pgon->getNPlanes ()];
139 double *rmx =
new double[pgon->getNPlanes ()];
141 for (
unsigned s = 0;
s < pgon->getNPlanes ();
s++) {
142 z[
s] = pgon->getZPlane (
s);
143 rmn[
s] = pgon->getRMinPlane (
s);
144 rmx[
s] = pgon->getRMaxPlane (
s);
◆ handleShift()
void SbPolyhedrizeAction::handleShift |
( |
const GeoShapeShift * |
shift | ) |
|
|
virtual |
Definition at line 42 of file SbPolyhedrizeAction.cxx.
44 shift->getOp()->exec(
this);
54 SbVec3d trx(translation.x(),translation.y(),translation.z());
◆ handleSimplePolygonBrep()
void SbPolyhedrizeAction::handleSimplePolygonBrep |
( |
const GeoSimplePolygonBrep * |
brep | ) |
|
|
virtual |
Definition at line 189 of file SbPolyhedrizeAction.cxx.
191 double dz = brep->getDZ();
192 std::vector<double>
x,
y;
193 for(
unsigned int i=0;
i<brep->getNVertices();
i++)
195 x.push_back(brep->getXVertex(
i));
196 y.push_back(brep->getYVertex(
i));
◆ handleSubtraction()
void SbPolyhedrizeAction::handleSubtraction |
( |
const GeoShapeSubtraction * |
subtract | ) |
|
|
virtual |
Definition at line 81 of file SbPolyhedrizeAction.cxx.
84 subtract->getOpA()->exec(&auxA);
85 subtract->getOpB()->exec(&auxB);
◆ handleTessellatedSolid()
void SbPolyhedrizeAction::handleTessellatedSolid |
( |
const GeoTessellatedSolid * |
tessellated | ) |
|
|
virtual |
Definition at line 202 of file SbPolyhedrizeAction.cxx.
205 double vertTolerance = 1
E-15;
206 std::vector<GeoFacetVertex> vertexList;
207 std::map<GeoFacet*,std::vector<size_t> > facetVertIndInSolid;
210 for(
size_t facetIndInSolid = 0; facetIndInSolid<tessellated->getNumberOfFacets(); ++facetIndInSolid) {
211 GeoFacet* facet = tessellated->getFacet(facetIndInSolid);
213 facetVertIndInSolid[facet] = std::vector<size_t>();
214 std::vector<size_t>&
current = facetVertIndInSolid[facet];
215 if(facet->getNumberOfVertices()==3)
220 size_t vertexListSize = vertexList.size();
221 GeoFacetVertex
vertex(0.,0.,0.);
224 for(
size_t vertexIndInFacet=0; vertexIndInFacet<facet->getNumberOfVertices(); ++vertexIndInFacet) {
225 vertex = facet->getVertex(vertexIndInFacet);
230 while(j<vertexListSize && !
found) {
231 GeoFacetVertex vertexToCheck = vertexList[j];
240 vertexList.push_back(
vertex);
241 current[vertexIndInFacet] = vertexList.size()-1;
250 for(
size_t vertexInd=0; vertexInd<vertexList.size(); ++vertexInd) {
251 GeoFacetVertex
vertex = vertexList[vertexInd];
256 for(
size_t facetIndInSolid = 0; facetIndInSolid<tessellated->getNumberOfFacets(); ++facetIndInSolid) {
257 GeoFacet* facet = tessellated->getFacet(facetIndInSolid);
258 std::vector<size_t>&
current = facetVertIndInSolid[facet];
261 for (
size_t j=0; j<4; j++)
◆ handleTrap()
void SbPolyhedrizeAction::handleTrap |
( |
const GeoTrap * |
trap | ) |
|
|
virtual |
◆ handleTrd()
void SbPolyhedrizeAction::handleTrd |
( |
const GeoTrd * |
trd | ) |
|
|
virtual |
Definition at line 166 of file SbPolyhedrizeAction.cxx.
169 trd->getXHalfLength2(),
170 trd->getYHalfLength1(),
171 trd->getYHalfLength2(),
172 trd->getZHalfLength());
◆ handleTube()
void SbPolyhedrizeAction::handleTube |
( |
const GeoTube * |
tube | ) |
|
|
virtual |
◆ handleTubs()
void SbPolyhedrizeAction::handleTubs |
( |
const GeoTubs * |
tubs | ) |
|
|
virtual |
◆ handleUnion()
void SbPolyhedrizeAction::handleUnion |
( |
const GeoShapeUnion * |
unio | ) |
|
|
virtual |
◆ operator=()
◆ m_polyhedron
The documentation for this class was generated from the following files: