|
|
pol_recip -o rh_dodec.off cuboct.offMake a cube whose vertices are the mid-points of an octahedron's faces
pol_recip -o orig_cuboct.off rh_dodec.off
pol_recip -o cube.off -R f octahedron.offA polyhedron has a face made of vertices with indexes 0, 2, 4. Make a dual which has a vertex in the plane of this face
pol_recip -o dual.off -R 0,2,4 poly.off
Some polyhedra have faces passing through their natural centre. This causes a problem when making a dual because the vertex which is dual to this face should be infinitely far away. pol_recip allows these vertices to be included by placing them at a specified (probably very large) distance normal to the face. Any programs dealing with these distant vertices (e.g. povray) can interpret these distant vertices accordingly.
The default reciprocation centre and radius are found by the following algorithm. It aims to find a reciprocation sphere that is balanced, in the sense that the polyhedron and its dual have the same relationship with the sphere.
centre = centroid of vertices of base polyhedron
radius = average distance from centre to edges
LOOP:
dual = polar reciprocal of base, using centre and radius
invert dual in centre point
edge_centroid = centroid of the nearest points to the centre
on the base's edges and duals edges
radius_sum_base = sum of distances from the centre to the nearest
point to the centre on the base's edges
radius_sum_dual = sum of distances from the centre to the nearest
point to the centre on the dual's edges
if loop count is even:
centre = 0.9*centre + 0.1*edge_centroid
if loop count is odd:
radius = radius * sqrt(rad_sum_g/rad_sum_d)
finish loop if change in centre and radius are small enough
The aim is that this will be a similar reciprocation method. That is to say
The default method above tends to reciprocate in the midsphere, if it exists.
The other available balanced reciprocation methods use the centroid of combined face near-points and vertex offsets, or the centroid of the near-points of all three elements combined. For all three cases the dual may be inverted in the reciprocation centre before the centroid calculation.
-R e may select a sphere suitable for self-duality.
-R v and -R V may always give the same results.
Up:
Programs and Documentation
Next:
geodesic - geodesic spheres