﻿<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ja">
	<id>https://wiki.blender.jp/index.php?action=history&amp;feed=atom&amp;title=%E5%88%A9%E7%94%A8%E8%80%85%3AEman-%2FSummerOfCode2005%2FlibNurbana_Integration</id>
	<title>利用者:Eman-/SummerOfCode2005/libNurbana Integration - 版の履歴</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.blender.jp/index.php?action=history&amp;feed=atom&amp;title=%E5%88%A9%E7%94%A8%E8%80%85%3AEman-%2FSummerOfCode2005%2FlibNurbana_Integration"/>
	<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:Eman-/SummerOfCode2005/libNurbana_Integration&amp;action=history"/>
	<updated>2026-12-04T21:12:18Z</updated>
	<subtitle>このウィキのこのページに関する変更履歴</subtitle>
	<generator>MediaWiki 1.31.0</generator>
	<entry>
		<id>https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:Eman-/SummerOfCode2005/libNurbana_Integration&amp;diff=41974&amp;oldid=prev</id>
		<title>Yamyam: 1版 をインポートしました</title>
		<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:Eman-/SummerOfCode2005/libNurbana_Integration&amp;diff=41974&amp;oldid=prev"/>
		<updated>2018-06-28T17:45:18Z</updated>

		<summary type="html">&lt;p&gt;1版 をインポートしました&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ja&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← 古い版&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;2018年6月28日 (木) 17:45時点における版&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;ja&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(相違点なし)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Yamyam</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:Eman-/SummerOfCode2005/libNurbana_Integration&amp;diff=41973&amp;oldid=prev</id>
		<title>wiki&gt;Mindrones: moved Dev:Ref/GSoC/2005/libNurbana Integration to User:Eman-/SummerOfCode2005/libNurbana Integration:&amp;#32;pushing these pages in user areas to conform to what has been done since 2006</title>
		<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:Eman-/SummerOfCode2005/libNurbana_Integration&amp;diff=41973&amp;oldid=prev"/>
		<updated>2009-06-12T12:32:05Z</updated>

		<summary type="html">&lt;p&gt;moved &lt;a href=&quot;/Dev:Ref/GSoC/2005/libNurbana_Integration&quot; class=&quot;mw-redirect&quot; title=&quot;Dev:Ref/GSoC/2005/libNurbana Integration&quot;&gt;Dev:Ref/GSoC/2005/libNurbana Integration&lt;/a&gt; to &lt;a href=&quot;/%E5%88%A9%E7%94%A8%E8%80%85:Eman-/SummerOfCode2005/libNurbana_Integration&quot; title=&quot;利用者:Eman-/SummerOfCode2005/libNurbana Integration&quot;&gt;User:Eman-/SummerOfCode2005/libNurbana Integration&lt;/a&gt;: pushing these pages in user areas to conform to what has been done since 2006&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新規ページ&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=== Curves and Surfaces - libNurbana Integration  ===&lt;br /&gt;
&lt;br /&gt;
== January 2009:  ==&lt;br /&gt;
&lt;br /&gt;
*Local Refine/subdivide tool (replace original Subdivide tool) &lt;br /&gt;
*Degree elevate/reduce with &amp;lt;strike&amp;gt;weighted and&amp;lt;/strike&amp;gt; cyclic surfaces &lt;br /&gt;
*Theme UI colours &lt;br /&gt;
*Fix bugs &lt;br /&gt;
**&amp;lt;strike&amp;gt;Add new control points bug&amp;lt;/strike&amp;gt; &lt;br /&gt;
**&amp;lt;strike&amp;gt;Skinning&amp;lt;/strike&amp;gt; &lt;br /&gt;
**BevelOb &lt;br /&gt;
*Test backwards compatibility with complex models &lt;br /&gt;
*Ensure original Blender functionality still works&lt;br /&gt;
&lt;br /&gt;
== September 2008:  ==&lt;br /&gt;
&lt;br /&gt;
== Eman - Week Starting September 22nd 2008:  ==&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;strike&amp;gt;Subdivision for endtied/clamped curves and surfaces&amp;lt;/strike&amp;gt; &lt;br /&gt;
*Subdivision/Knot Insertion for cyclic surfaces, rational splines and open knots &lt;br /&gt;
**This is a missing feature in Nurbana, Twingy/Justin is helping rewrite the algorithm &lt;br /&gt;
*&amp;lt;strike&amp;gt;Reverse compatibility with old Blender files (forwards compatibility too?)&amp;lt;/strike&amp;gt; &lt;br /&gt;
*&amp;lt;strike&amp;gt;Delta caching optimisation&amp;lt;/strike&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Eman - Week Starting September 29nd 2008:  ==&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;strike&amp;gt;Integrate ideasman/Campbell&amp;#039;s changes from HEAD &amp;lt;/strike&amp;gt; &lt;br /&gt;
**&amp;lt;strike&amp;gt;Fix resulting memory issues&amp;lt;/strike&amp;gt; &lt;br /&gt;
**&amp;lt;strike&amp;gt;Refactor NURBS_Generate to handle 1D arrays, for tilt, radius etc.&amp;lt;/strike&amp;gt; &lt;br /&gt;
*&amp;lt;strike&amp;gt;Fix Isolines with incremental calculation optimisation&amp;lt;/strike&amp;gt; &lt;br /&gt;
*Examine Refine and &amp;lt;strike&amp;gt;Degree Elevate/Decrease&amp;lt;/strike&amp;gt; and evaluate suitability for immediate inclusion. &lt;br /&gt;
*Make stable, test, etc.&lt;br /&gt;
&lt;br /&gt;
== UI changes (please help if you can):  ==&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;strike&amp;gt;Edit Knot Vector (Nurb.knotsu and Nurb.knotsv in blender\makesdna\DNA_curve_types.h )&amp;lt;/strike&amp;gt; (Needs review) --zaghaghi &lt;br /&gt;
*&amp;lt;strike&amp;gt;Change CV Cage to be a little less obtrusive &amp;lt;/strike&amp;gt; &lt;br /&gt;
**&amp;lt;strike&amp;gt;Make it complete for cyclical surfaces?&amp;lt;/strike&amp;gt; &lt;br /&gt;
*&amp;lt;strike&amp;gt;make CVs themselves more obvious&amp;lt;/strike&amp;gt; &lt;br /&gt;
*&amp;lt;strike&amp;gt;Fix Normals/Shading issue on cyclic curves&amp;lt;/strike&amp;gt; &lt;br /&gt;
*UI for selecting specific point on curve surface&lt;br /&gt;
&lt;br /&gt;
== Old Content  ==&lt;br /&gt;
&lt;br /&gt;
Much of the information is out of date and does not apply to the current state of the nurbs/ branch. &amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
=== Review:  ===&lt;br /&gt;
&lt;br /&gt;
The summer has flown by, and I am pleased to say that I have completed this project more-or-less as described in the original [[SoCNurbsCurveNurbanaProposal|proposal]]. &lt;br /&gt;
&lt;br /&gt;
My proposal mentioned two principal goals: &lt;br /&gt;
&lt;br /&gt;
*Firstly to modify Nurbana&amp;#039;s C++ codebase to a be more libraryesque, and then expose this functionality via a C API.&lt;br /&gt;
&lt;br /&gt;
*Secondly to convert Blender&amp;#039;s current NURBS backend to use the new libNurbana API.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; The first goal took a considerable amount of time and work. Nurbana was in a pre-release alpha state and was written to be an application not a library. Furthermore Nurbana made use of SDL threads. After much code refactoring, reorganisation and reduction, and recoding some portions to remove dependancies, I produced a working chunk of dependancy-free core code which I could integrate into the Blender tree as a library. The fact that Nurbana is written in C++ meant that I also had to write a C API to wrap calls. I decided to call the new library libNurbana to differenciate it from the application version of Nurbana while still paying homage to it&amp;#039;s origins. Like Nurbana, libNurbana is released under the LGPL. This portion of the project accounted for more than half my time spent on this project. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; The second goal: to convert Blender&amp;#039;s NURBS backend is essentially complete. An unforeseen complication (the fact that Blender used row-centric arrays for control points, and Nurbana uses column-centric) made this process much slower than I would have liked. Despite the need for a lot of recoding, the functionality is now in place (although much testing is still needed). This can be clearly seen by looking at the default NURBS primitives: &lt;br /&gt;
&lt;br /&gt;
[[Image:Dev-primitivesfinal.png]] &amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; The other deliverables mentioned in my proposal were explicitly stated to be &amp;quot;time dependent deliverables&amp;quot; because I suspected from the outset that I would not have enough time to complete them. I have completed one: &lt;br /&gt;
&lt;br /&gt;
*Cardinal spline with variable tension (a cardinal spline is a unique spline because the curve passes throught all its control points)&lt;br /&gt;
&lt;br /&gt;
[[Image:Dev-cardinalfinal1.png]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; [[Image:Dev-cardinalfinal2.png]] &amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Another proposed type was B-Spline, but after discussion with Ton, I decided to modify this goal slightly. The old method for manipulating NURBS Knots in Blender was cumbersome and unintuitive. I have implemented an automatic knot system which mimics the style of B-Splines with the added bonus of the curve/surface still being rational. Cyclic surfaces get automatically assigned a periodic knot vector, and non-cyclic surfaces get an &amp;#039;endtied&amp;#039; bsplinesque open knot vector. I think that this method offers a much more intuitive method to model splines and surfaces and should help limit confusion surrounding NURBS somewhat. &lt;br /&gt;
&lt;br /&gt;
Another small modification which I have made, and hope to continue to improve on is to the UI. I have changed the buttons which display in editmode depending on the type of curve. &lt;br /&gt;
&lt;br /&gt;
It might appear that Blender now functions in much the same way as it did initially, this is not the case. The NURBS backend of Blender has been completely replaced with a mechanism which interfaces with libNurbana&amp;#039;s API. I did my utmost to ensure that Blender continued to behave in the same manner in order to maintain a level of back compatibility (some modifications still need to be done). This interface can now be used to implement new features very quickly. This new extensibility for Blender&amp;#039;s NURBS system was the main purpose of this project. &lt;br /&gt;
&lt;br /&gt;
libNurbana features that I hope to implement soon: &lt;br /&gt;
&lt;br /&gt;
*Isolines &lt;br /&gt;
*Non-destructive subdivision &lt;br /&gt;
*Blending &lt;br /&gt;
*Non-destructive Lofting &lt;br /&gt;
*Rhino import/export for NURBS&lt;br /&gt;
&lt;br /&gt;
And old Blender NURBS surface displayed using libNurbana backend:&lt;br /&gt;
&lt;br /&gt;
[[Image:Dev-oldsurface.png]] &amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
== Original Spec:  ==&lt;br /&gt;
&lt;br /&gt;
== Goals:  ==&lt;br /&gt;
&lt;br /&gt;
The purpose of this project is to examine the current curves and surfaces code in Blender and to integrate Nurbana*. I hope to add some new functionality immediately and also to update Blender&amp;#039;s existing curves/surfaces code to allow the addition of future functionality more easily. Any backend changes will happen in a way which is transparent to the user, and if possible a redesign of the current NURBS UI will improve the usability of the system from the frontend. &lt;br /&gt;
&lt;br /&gt;
*Nurbana is/was a NURBS modeling tool written in C++ by Justin Shumaker. He donated the source to Blender. It will be granted a new lease of life as &amp;quot;libNurbana&amp;quot; by this project.&lt;br /&gt;
&lt;br /&gt;
== Implementation:  ==&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Structure&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
&lt;br /&gt;
The new NURBS functionality will be introduced in a module which will be based on Nurbana, and probably be called libNurbana. Blender will interact with this module via a C API similar to other C++ modules in Blender e.g. the Inverse Kinematics module. For the time being only NURBS computation will be handled by libNurbana. Hopefully this diagram might help to explain: (grey boxes depict data structures, arrows are data flow) &lt;br /&gt;
&lt;br /&gt;
[[Image:Dev-blender.gif]] &amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;New Code&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
&lt;br /&gt;
*=./intern/nurbana/extern/nurbana.h= is the C interface for Nurbana, this will allow Blender to access the C++ functions in the same way as IK_solver.h in the IK module &lt;br /&gt;
*=./intern/nurbana/intern/(.h&amp;amp;amp;.cpp)= will be Nurbana files, I will reduce the number of these as much as possible &lt;br /&gt;
*=./source/blender/blenkernel/intern/nurbs.c= will call Nurbana functions, converting internal Blender =Nurbs= and =BPoint= structs into an acceptable common format shared by =./intern/nurbana/extern/nurbana.h=. &lt;br /&gt;
*=./source/blender/blenkernel/BKE_nurbs.h= is the header file for new Blender NURBS functions &lt;br /&gt;
*=./source/blender/src/editnurbs.c= will provide editing functionality (update: editnurbs.c did not prove to be necessary)&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Modifications to existing code&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
&lt;br /&gt;
*Additional Curves (see above): =curves.c editcurves.c displist.c= &lt;br /&gt;
*Improved UI for old curves, Uniform B-Splines, Cardinal Splines and new NURBS interface &lt;br /&gt;
*New menu items&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Dependancies&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
&lt;br /&gt;
*New code will depend on =Nurb= and =BPoint= like before (hopefully without modifications) &lt;br /&gt;
*Nurbana and Blender will be independent but will require a definition of =Nurb_extern= in order to share NURBS data. This will be defined in nurbana.h &lt;br /&gt;
*For the time being only NURBS curves and surfaces will depend on Nurbana, other curves could perhaps be ported later if beneficial. &lt;br /&gt;
*Since the same dna structs are being used, saving and loading old CU_NURBS curves should be seamless &lt;br /&gt;
*libNurbana will have no external dependencies and should be useful to any application in need of NURBS functionality.&lt;br /&gt;
&lt;br /&gt;
== Extra:  ==&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Change&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
&lt;br /&gt;
This design is likely to evolve and change somewhat over the course of the Implementation. Updates will be noted here. &lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Help&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
&lt;br /&gt;
Due to the sheer scope of this project, and since its main focus is the backend code, some assistance might be required with the frontend improvements. A complete overhaul is probably in order, and some help (towards the end) with the overall UI design would be good. I will do my best to complete this project within the Google Summer of Code timeframe, but I think that making any promises about when the UI aspects will happen would be over-ambitious. &lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Thanks&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
&lt;br /&gt;
I wouldn&amp;#039;t have got this far without the sterling efforts of Ton, Chris Want, Martin Poirier and #blendercoders. An extra special thank you to Justin Shumaker for all his help with Nurbana, and &amp;#039;just in time&amp;#039; bugfixes. Thanks to Google for the opportunity&amp;amp;nbsp;:) &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; -- [[BlenderDev/EmmanuelStone|EmmanuelStone]] - 23 Jul 2005&lt;/div&gt;</summary>
		<author><name>wiki&gt;Mindrones</name></author>
		
	</entry>
</feed>