我是 boost 的新手,甚至是 boost-geometry 的新手,所以我的问题是...... boost-geometry 向多边形添加点的顺序重要吗?
例如:这一样吗?
// create a polygon
polygon p;
p.outer().push_back(point(0, 0));
p.outer().push_back(point(0, 10));
p.outer().push_back(point(10, 0));
p.outer().push_back(point(10, 10));
// create a polygon the same polygon?
polygon p;
p.outer().push_back(point(0, 0));
p.outer().push_back(point(0, 10));
p.outer().push_back(point(10, 10));
p.outer().push_back(point(10, 0));
Run Code Online (Sandbox Code Playgroud)
预先非常感谢您。
I want to activate my users in my django server when they follow a link from their email with a token, like this:
http://127.0.0.1:8000/user-activation/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImdhYm8iLCJ1c2VyX2lkIjoxOSwiZW1haWwiOiJsYXRvcnJlZ2FiQGdtYWlsLmNvbSIsImV4cCI6MTQ2NDE3ODk1N30.5FDKdxKxWuOkqe3rMNE-eHwmtrlWpD7EZ-EXw0yQM3U/
Run Code Online (Sandbox Code Playgroud)
I have this pattern
url(r'^user-activation/(?P<id>\w+)/', views.UserActivation.as_view()),
Run Code Online (Sandbox Code Playgroud)
But it's returning 404. I searched a lot and nothing seems to work. What am I doing wrong?
I couldn't find any answer that works reading
https://docs.djangoproject.com/es/1.9/ref/urls/
nor
https://docs.djangoproject.com/es/1.9/topics/http/urls/
Edit:
I've read the post
但是,没有关于同时接收连字符和点的例子,这就是造成我困惑的原因。
标记的答案解决了我的问题。谢谢