matlab绘制三维圆环垫片,matlab实现n个相同圆的2D阿波罗垫圈

2D Apollonian gasket with n identical circles

This function creates and displays 2D Apollonian gaskets.

In mathematics, an Apollonian gasket or Apollonian net is a fractal generated from three circles, any two of which are tangent to one another

The method used to create the Apollonian gasket is based on circle inversion, which is a geometrical transformation acting with a reference circle that modifies points.

In the plane, the inverse of a point P in respect to a circle of center O and radius R is a point P' such that P and P' are on the same ray going from O, and OP times OP' equals the radius squared

OP * OP' =R²

All circles are created using the inversion properties of circles.

Input: This function takes 6 arguments (each argument is optional)

- a positive integer, which corresponds to the number of circles on the first level of the apollonian packing. (3 at least)

- a positive integer, which corresponds to the number of levels of the apollonian. Higher the number of level is, more numerous the circles will be. 10 levels is a quite high value.

- an interger (0 or 1), which allows to display(1) or not(0) the inversion circles

- an integer (0 or 1), which indicates whether or not a metapost file is created within the results.

- an integer (0 or 1), which indicates whether or not a SVG file is created within the results.

- a string which indicates the filename in which results will be printed.

Output: a struture that contains all informations on created circles on each level:

- S(1) contains all data on level 1, coordinates centers and

radius of each circle

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值