#!/usr/bin/env python
#
#  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 
#                               Michael A.G. Aivazis
#                        California Institute of Technology
#                        (C) 1998-2005 All Rights Reserved
# 
#  <LicenseText>
# 
#  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
 
import pyre.geometry.solids
from AbstractNode import AbstractNode
 
 
class Torus(AbstractNode):
 
    tag = "torus"
 
 
    def notify(self, parent):
        torus = pyre.geometry.solids.torus(major=self._major, minor=self._minor)
        parent.onTorus(torus)
 
        return
 
 
    def __init__(self, document, attributes):
        AbstractNode.__init__(self, attributes)
        self._major = self._parse(attributes["major"])
        self._minor = self._parse(attributes["minor"])
        return
 
 
# version
__id__ = "$Id: Torus.py,v 1.1.1.1 2005/03/08 16:13:45 aivazis Exp $"
 
# End of file