Ejemplo n.º 1
0
    def addCircle(self, vcenter, radius, BC=""):
        """Adds circle around vcenter with r=radius to domain.

		:param vcenter:  Vertex object.
		:type vcenter: pyrw.geometry.vertex
		:param radius:  Radius of circle.
		:type radius: float
		:returns: pyrw.geometry.circle -- circle object
		"""

        c = RWgeo.circle(self, vcenter, radius)
        self.typ = 'circle'

        return c
Ejemplo n.º 2
0
	def addCircle(self,vcenter,radius,BC=""):
		
		"""Adds circle around vcenter with r=radius to domain.

		:param vcenter:  Vertex object.
		:type vcenter: pyrw.geometry.vertex
		:param radius:  Radius of circle.
		:type radius: float
		:returns: pyrw.geometry.circle -- circle object
		"""
		
		c=RWgeo.circle(self,vcenter,radius)
		self.typ='circle'
			
		return c