Computer-aided hull 3D modeling is an important step for ship products to improve quality,shorten development period and reduce costs.However,it still has many problems such as the complexity of hull structures and the management of large amount of size information.In view of the current situation,the paper uses the similarities of hull components to extract common features,then designs a set of ship standard library system with adequate functions and simple operation which mainly launches the following work.Firstly,various types of hull standard components are divided,and a standard library system is developed including profile library,material library,bracket library,and node library based on NX platform.The system not only presets a large number of standard components that meet industry standards,but also supports component customization for specific ship engineering.Besides,the import and export function realize the updating and modification of custom and local data,facilitating information sharing with designers.The system simplifies the repetitive process of hull modeling and is suitable for threedimensional rapid modeling.For the core issue of the system-data storage and interaction,it adopts a lightweight SQLite database.By analyzing the characteristics of the data format,we establish the underlying data table.On this basis,the data reading and writing class is designed and implemented.In terms of data structure,a reusable,easy-to-maintain local data structure is utilized to efficiently store the data read from database,modifying the logical relationship of the database.As for the problem of slow data loading and data synchronization between different modules,a scheme for data step loading and synchronous data change recording is proposed,which optimizes the access speed in most cases.Finally,the paper gives the implementation of each function of the system and verifies it with a hull modeling example.The results show that each standard component library has strong practicality and achieves the ultimate goal of simplifying modeling process and improving modeling efficiency. |