1. 제품
  2.   3D
  3.   Perl
  4.   Aspose.3D Cloud Perl SDK

Aspose.3D Cloud Perl SDK

 
 

3D 파일을 생성, 편집, 조작 및 변환하는 Perl SDK

FBX, STL, OBJ, 3DS, OBJ 등을 포함한 3D 모델을 생성, 편집, 조작 및 변환하고 클라우드 앱 내에서 3D 씬을 추출할 수 있는 강력한 REST API.

Aspose.3D Cloud Perl SDK란 무엇인가요?

끊임없이 변화하는 소프트웨어 개발 세계에서 복잡한 작업을 쉽게 만들 수 있는 강력한 도구에 대한 필요성은 계속 증가하고 있습니다. 기술이 발전함에 따라 애플리케이션에 3D 모델링과 같은 고급 기능을 포함하는 것이 필수적입니다. 3D 모델링 및 처리를 탐구하는 소프트웨어 개발자라면 Aspose.3D Cloud Perl SDK가 신뢰할 수 있는 파트너가 될 수 있습니다. 이 SDK는 Perl 애플리케이션과 최첨단 3D 기능을 원활하게 연결해 줍니다. 또한 SDK는 보안 모범 사례를 포함하여 개발자가 Aspose.3D Cloud API와 안전하게 통신하도록 보장합니다.

Aspose.3D Cloud Perl SDK의 큰 장점 중 하나는 Aspose.3D Cloud API와 얼마나 쉽게 연동되는가입니다. 이 소프트웨어 도구는 개발자가 Perl 애플리케이션에 강력한 3D 기능을 쉽게 추가할 수 있게 해줍니다. SDK는 연결 고리 역할을 하여 개발자가 3D 모델링을 위해 API를 더 쉽게 사용할 수 있도록 합니다. 이 라이브러리에는 처음부터 3D 씬을 생성하고, 3D 씬을 PDF로 저장하며, 3D 모델링 조작, 3D 파일에서 씬을 추출하고, 3D 파일을 다른 형식으로 변환하고, 파라메트릭 모델링 지원, 3D 엔티티 생성, 삼각형 메쉬 작업 등 주요 기능이 포함되어 있습니다.

Aspose.3D Cloud Perl SDK는 매우 사용자 친화적입니다. FBX, STL, VRML, ASE, OBJ, 3DS, U3D, DAE, DRC, GLTF, RVM, PDF, AMF, PLY, X, JT, DXF, 3MF, HTML 등 다양한 주요 3D 파일 형식을 기본적으로 지원합니다. 또한 다양한 플랫폼에서 원활하게 작동하도록 설계되었습니다. 따라서 어떤 플랫폼을 사용하든 Perl 애플리케이션에 3D 기능을 쉽게 추가할 수 있습니다. 요약하면, Perl SDK는 3D 모델링 및 처리의 흥미로운 세계를 탐구하는 소프트웨어 개발자에게 길잡이와 같습니다. API와 원활하게 통합되고, 다양한 플랫폼에 적응 가능하며, 사용이 쉬우며, 지속적인 지원을 제공함으로써 이 SDK는 3D 기술의 놀라운 기능으로 Perl 애플리케이션을 향상시킬 수 있게 합니다.

Previous Next

Aspose.3D Cloud Perl SDK 시작하기

추천 설치 방법은 Comprehensive Perl Archive Network(CPAN)를 이용하는 것입니다. 원활한 설치를 위해 다음 명령을 사용하십시오.

CocoaPods를 통해 Aspose.3D Cloud Perl SDK 설치

cpan AsposeCloud::3D

컴파일된 공유 라이브러리를 Aspose.3D Cloud Perl SDK 제품 페이지에서 다운로드할 수 있습니다.

클라우드에서 3D 파일을 PDF로 변환

Aspose.3D Cloud Perl SDK는 3D 모델을 PDF, XPS, JPEG, PNG 등과 같은 다른 지원 파일 형식으로 로드하고 변환하는 완전한 지원을 제공합니다. 라이브러리에는 사용자가 변환 프로세스를 원활하게 완료할 수 있도록 돕는 여러 중요한 기능이 포함되어 있습니다. 전체 3D 파일을 변환하는 것뿐만 아니라 특정 부분만 PDF로 변환하는 것도 지원합니다. 다음 예제는 Perl 개발자가 Perl 명령을 사용하여 기존 3D 파일을 PDF 파일로 변환하는 방법을 보여줍니다.

Perl SDK를 사용하여 3D 모델을 PDF로 변환하는 방법?

# Get your ClientId and ClientSecret from https://dashboard.aspose.cloud (free registration required).
	
	my $config = AsposeThreeDCloud::Configuration->new('base_url' => 'https://api.aspose.cloud');
    my $client = AsposeThreeDCloud::ApiClient->new( $config);
    my $oauth_api = AsposeThreeDCloud::OAuthApi->new($client);

    my $grant_type = 'client_credentials';
    my $client_id = 'MY_CLIENT_ID';
    my $client_secret =  'MY_CLIENT_SECRET';
    my $result = $oauth_api->o_auth_post(grant_type => $grant_type, client_id => $client_id, client_secret => $client_secret);
    my $access_token  = $result->access_token;

    my $new_config = AsposeThreeDCloud::Configuration->new('access_token' =>  $access_token, 'base_url' => 'https://api.aspose.cloud/v3.0');
    $new_client = AsposeThreeDCloud::ApiClient->new( $new_config);
	my $api = AsposeThreeDCloud::ThreeDCloudApi->new($new_client)
	
	my $name = 'Aspose.Upload.3d';
    my $newformat = 'pdf';
    my $newfilename = 'saveasformat.pdf';
    my $folder = '3DTest';
    my $is_overwrite = 'true';
    my $storage = undef;

	my $result = $api->post_convert_by_format(name => $name, newformat => $newformat, newfilename => $newfilename, folder => $folder, is_overwrite => $is_overwrite, storage => $storage);

Perl을 사용하여 3D 엔터티 생성 및 관리

Aspose.3D Cloud Perl SDK를 사용하면 소프트웨어 개발자가 Perl 코드를 사용하여 3D 모델 내부에서 처음부터 새로운 3D 엔터티를 프로그래밍 방식으로 생성할 수 있습니다. 이 SDK는 Box, Sphere, Plane, Torus, Cylinder 등과 같은 인기 있는 엔터티 생성을 지원합니다. 개발자는 너비, 높이, 깊이, 이름 및 폴더와 같은 매개변수를 자신의 요구에 맞게 쉽게 조정할 수 있습니다. 아래는 개발자가 Perl 코드를 사용하여 기본 3D 박스를 만드는 간단한 예제입니다.

Perl API를 통해 기본 3D 박스를 만드는 방법?

use AsposeCloud::3D::ApiClient;
use AsposeCloud::3D::Configuration;

my $config = AsposeCloud::3D::Configuration->new(
    app_sid => 'YourAppSID',
    app_key => 'YourAppKey',
);

my $api_client = AsposeCloud::3D::ApiClient->new(config => $config);

use AsposeCloud::3D::ObjectByThreeDsModelApi;
use AsposeCloud::3D::CreateEntityRequest;
use AsposeCloud::3D::Box;

my $object_api = AsposeCloud::3D::ObjectByThreeDsModelApi->new(api_client => $api_client);

my $box = AsposeCloud::3D::Box->new(
    width  => 5.0,   # Replace with your desired width
    height => 5.0,   # Replace with your desired height
    depth  => 5.0,   # Replace with your desired depth
);

my $create_entity_request = AsposeCloud::3D::CreateEntityRequest->new(
    name   => 'Box',           # Replace with your entity name
    box    => $box,
    folder => 'your_folder',   # Replace with your desired folder
);

my $result = $object_api->post_create_entity(request => $create_entity_request);

if ($result->status eq 'OK') {
    print "Entity created successfully.\n";
} else {
    print "Error: " . $result->status . "\n";
}

Perl API를 통해 3D 씬을 다른 형식으로 추출

Aspose.3D Cloud Perl SDK는 소프트웨어 개발자가 Perl 애플리케이션 내에서 3D 씬을 추출하고 다른 형식으로 변환하는 작업을 쉽게 해줍니다. 이 기능은 메타데이터나 모델의 특정 속성에 접근해야 하는 애플리케이션을 개발할 때 특히 유용합니다. 또한 SDK는 메시 통계, 정점 수, 재질 정보 등 상세 정보를 가져오는 유용한 함수를 제공합니다. 아래는 파일에서 3D 씬을 추출하고 GLTF와 같은 다른 형식으로 변환하는 간단한 예제입니다.

파일에서 3D 씬을 추출하고 GLTF 형식으로 변환하는 방법?

use AsposeCloud::3D::SceneApi;
use AsposeCloud::3D::SaveOptions;

my $scene_api = AsposeCloud::3D::SceneApi->new(api_client => $api_client);

my $input_path = 'input_scene.obj';   # Replace with the path to your input 3D scene file
my $output_path = 'output_scene.gltf'; # Replace with the desired output format and path

my $save_options = AsposeCloud::3D::SaveOptions->new(
    save_format => 'gltf',              # Replace with your desired output format
    file_name   => $output_path,
);

my $result = $scene_api->post_export_scene(file => $input_path, save_options => $save_options);

if ($result->status eq 'OK') {
    print "Scene extracted and converted successfully. Output saved at $output_path\n";
} else {
    print "Error: " . $result->status . "\n";
}

보안 및 크로스 플랫폼 유연성

디지털 환경에서 보안은 최우선이며, Aspose.3D Cloud Perl SDK는 이를 타협하지 않습니다. 내장된 보안 조치는 SDK와 Aspose.3D Cloud API 간의 데이터 교환이 모범 사례를 따르도록 보장합니다. 이러한 보안에 대한 약속은 개발자가 3D 모델링의 힘을 활용하는 견고하고 안전한 애플리케이션을 구축할 수 있게 합니다. 오늘날 기술 생태계에서 다양한 개발 환경을 인식하여, SDK는 크로스 플랫폼 호환성을 보장합니다. 개발자는 작업 중인 플랫폼에 관계없이 Perl 애플리케이션에 3D 기능을 원활하게 통합할 수 있습니다. 이러한 유연성은 SDK의 접근성을 향상시켜 다양한 선호도를 가진 광범위한 개발자에게 맞춥니다.

 한국인